Sorting
All top-level API resources have support for bulk fetches via "list" API methods. Some of these list API methods support sorting via the sort query parameter.
The sort query parameter accepts a JSON object with the following properties:
{
"field": "<field>",
"order": "asc/desc", // Defaults to desc
"ignore_casing": true/false // Defaults to false
}
- field: The field to sort by
- order: The sort direction, either
asc
(ascending) ordesc
(descending). Defaults todesc
if not specified. - ignore_casing: When set to
true
, performs case-insensitive sorting for string fields. Defaults tofalse
. Note that enabling this option may impact performance for large datasets.