For sorting and pagination, use the following API call adding the page, limit, and sort parameters:
GET https://<URL_of_the_Instance>/api/carts/v1/carts
For example: https://<URL_of_the_Instance>/api/carts/v1/carts?filter=eq(Account.Id:'<actual accountId>')&sort=ASC(Name)&Page=1&limit=10