Retrieving an ordered resources
GET
/api/resource?sort[element.subelement]=ascending_or_descending
To retrieve an ordered resources, you can append a sort parameter to the URL. It can contain a list of properties by which to sort mapped to the order ( 1 ascending, -1 descending).
Successful responses return with a HTTP 200 status code.
Example : https://app.zahironline.com/api/accounts?sort[subclassification.code]=-1