Developer documentation
Sorting
To retrieve the data in specific order of particular field of collection, OData offers $orderby system query option. By specifying the column, and order preference i.e. ascending or descending, one can achieve the same.
Example:
Request a list of products ordered by the salesprice descending:
/api/v1/products?$orderby=SalesPrice desc