Ascending and descending sort are now done via the API.
This is needed for pagination.