REST API endpoints that return paginated responses may provide a possibility to sort the results by one of the result properties. Not all properties can be used for sorting. Please check the endpoint documentation to find out the sorting properties.
Requests
In addition to the endpoint-specific parameters, endpoints that return sorted results accept the following parameters to control the sorting property and the order:
Parameter
Type
Description
The defaults are different for different endpoints and are provided in the corresponding endpoint documentation.
Example
Get blocks sorted by height from lowest to highest: