Sorting
All GET requests to the Wunderite API support sorting by one or more fields. Sortable fields are defined in the object model for each endpoint. They are denoted as Sortable in the field's description.
- By default, when providing a sort field, results are sorted in ascending order.
- You can sort in descending order by prefixing the sort field name with a minus sign
-
. - Multiple sorts can be defined as a comma-separated list, or as a query parameter array.
# Sort by name in ascending order, created at in descending order
sort=name,-created
# or
sort[]=name&sort[]=-created