Sort
You can sort the data returned by the API by using the following parameters.
| Parameter | Description | Type | Format |
|---|---|---|---|
sort_field | Specifies the field to sort by. | string | Any sortable field name |
direction | Specifies the sort direction. Defaults to DESC when omitted. | string | ASC or DESC |
note
The sorting parameters are optional. If not specified, the data is sorted in descending order by default.
Example:
To sort results in ascending order by creation date, use the following query string parameters:
GET
...?sort_field=source_created_at&direction=ASCSee also
- Pagination - Paginate through results
- Filter - Filter results by date