> ## Documentation Index
> Fetch the complete documentation index at: https://developer.tra.cy/llms.txt
> Use this file to discover all available pages before exploring further.

# Sorting

All GET endpoints that return resource collections support sorting via URL parameter.

<ParamField query="sorting" default="null" type="string">
  A comma-separated list of property paths, where each path is prefixed with `+` for ascending order or `-` for descending order.
</ParamField>

<RequestExample>
  ```bash Example theme={null}
  # Returns all records sorted by the position of their states.
  curl --request GET \
    --url '/records?sorting=+state.position'
  ```
</RequestExample>
