Local API
To sort Documents in the Local API, you can use thesort option in your query:
sort option with fields in an array:
REST API
To sort in the REST API, you can use thesort parameter in your query:
sort parameter with fields separated by comma:
sort as an array so each item is a single field when using query string builder:
GraphQL API
To sort in the GraphQL API, you can use thesort parameter in your query: