# Sorting

URL: https://www.agencytitan.com/docs/tag/sorting

List endpoints accept a `sort` and an `order` parameter. `sort` selects the field to order by. The allowed values differ per resource, so check the `sort` parameter on each list endpoint. `order` is either `asc` or `desc` (defaults to `desc`).

```bash
curl "https://api.agencytitan.com/v1/clients?sort=name&order=asc" \
  -H "Authorization: Bearer at_your_api_key_here"
```

```javascript
const res = await fetch(
  "https://api.agencytitan.com/v1/clients?sort=name&order=asc",
  { headers: { Authorization: "Bearer at_your_api_key_here" } },
);
const data = await res.json();
```

```python
import requests

res = requests.get(
    "https://api.agencytitan.com/v1/clients",
    params={"sort": "name", "order": "asc"},
    headers={"Authorization": "Bearer at_your_api_key_here"},
)
data = res.json()
```

## Operations

_This tag has no REST operations (guide / concept page)._

## Useful links

- Interactive page: https://www.agencytitan.com/docs/tag/sorting
- API reference home: https://www.agencytitan.com/docs/
- This page as Markdown: https://www.agencytitan.com/docs/tag/sorting.md
- Full API Markdown: https://api.agencytitan.com/v1/llms.txt
