Listing endpoints in the Reactor API allow you to sort returned resources based on specified attributes. You can configure the sort order of the response by by supplying a sort
parameter in the request path.
Resources may be sorted by an attribute in ascending order by specifying the
attribute by which to sort, and prefixing it with a +
:
GET /companies/:company_id/properties?sort=+name
Resources may be sorted by an attribute in descending order by specifying the
attribute by which to sort, and prefixing it with a -
:
GET /companies/:company_id/properties?sort=-name
To sort by multiple values, supply the sort directives as a comma-separated
list:
GET /companies/:company_id/properties?sort=+name,-org_id