GET /products and
GET /transactions REST API endpoints adhere to a standard result set sorting scheme, which can be controlled via the
sort query parameter.
A comma-separated list of property keys that must match one of the properties of the subject REST resource (
transaction). The property needs to be supported for sorting.
The default sorting order is ascending. To sort the result set in descending order, prefix the property key with the
- character before appending to the comma-separated sort list.
stringvalued properties, sorting is alphabetical, with ascending order from
numericproperties, sorting is based on magnitude, with ascending order from
∞. This also applies for ISO 8601 UTC
The result set is sorted in the order the keys appear in the comma-separated list that was sent in the
sort query parameter. For example, if
?sort=A,-B,C are passed, the initial result set is sorted in ascending order against
A, the output of which is sorted in descending order against
B, and the output of the second sort is sorted in ascending order against
C, before returning the final result set.