canOrderBy property
possible orderings with parameter ?order=
created_at
: (URLParameter), prefix with a hyphen (-created_at) to reverse the orderperson.first_name
: (URLParameter), prefix with a hyphen (-person.first_name) to reverse the orderperson.last_name
: (URLParameter), prefix with a hyphen (-person.last_name) to reverse the order
Implementation
static List<String> get canOrderBy =>
['created_at', 'person.first_name', 'person.last_name'];