sort key

The field a collection is ordered by, chosen by the client from a small documented list, such as sort=title or sort=-id for descending.

In more detail

The server maps each allowed name to a known expression and rejects anything else with 400, so clients can never send raw database syntax. A cursor must encode the position in whichever order was chosen.

Examples

sort=id
sort=-id

Related terms

Taught in

References