Sort Results
Last updated
Last updated
This parameter allows you to specify the order in which objects of a particular type are retrieved.
/api/v4/
backend-deployment-id
/objects/
model
.json?sort[
field
]=
direction
GET
Sort criteria are specified as a URL-encoded sort
hash. Valid keys for this hash are the names of the fields in that model. Sort directions can be expressed in JavaScript style: 1
or -1
- or human-readable: asc
, ASC
, desc
or DESC
The response will contain a list of objects sorted by the specified field. The format of the objects is the same as for listing all objects (please refer to the section).