Parameter | Description |
$sort | Entity properties to sort the response by and the direction to sort them. |
The $sort query string parameter allows you to specify the ordering of the query output based on the values of certain properties. It accepts a comma-separated list of properties, indicating the order in which the results should be sorted.
The results will be sorted in the order the properties are specified in the parameter.
Callers can specify the sort direction for each individual properties by providing a prefix as defined in the table below:
Prefix | Default | Sort Direction |
+ | ✓ | Ascending (ASC). |
- | Descending (DESC). |
Note: If no prefix is given for a specific field the default prefix will be used.