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

# Ordering

> Order list results with the orderBy query parameter.

## Query parameters

<ParamField query="orderBy" type="string | string[]">
  The field(s) to sort by. Provide a single field or an array. Multiple fields
  sort left-to-right. Ascending by default; prefix with `-` for descending. Each
  endpoint documents the fields it can be ordered by.
</ParamField>

## Examples

```bash theme={null}
# newest content first
GET /v2/projects/{projectId}/content?orderBy=-createdAt
```

```bash theme={null}
# multiple fields (array syntax)
GET /v2/projects/{projectId}/attribute-definitions?orderBy[]=displayName&orderBy[]=-createdAt
```
