Sorting
Many Commerce endpoints support sorting. The general syntax of sorting within the API is described below.
Sorting is also supported within the JavaScript SDK.
Usage and Syntax
Query parameters
Name | Required | Type | Description |
---|---|---|---|
sort | Optional | string | The attribute to sort by. Supported attributes differ based on endpoint. |