Use the sort query parameter to sort by a particular field. If no sort is specified, the default sort is on sort_name, as it is now. If a non-sort_name field is being used to sort by, sort_name is used second in the ordering.
Also add the optional order field, where the value is either asc or desc. The former is the default ordering.
Use the
sort
query parameter to sort by a particular field. If nosort
is specified, the default sort is onsort_name
, as it is now. If a non-sort_name
field is being used to sort by,sort_name
is used second in the ordering.Also add the optional
order
field, where the value is eitherasc
ordesc
. The former is the default ordering.