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 | |
direction | Specifies the sort direction. If not specified, defaults to 'DESC'. | string | Must be either '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=ASC