# Sorting

It is possible to sort some records lists by most of its attributes using `sort_by` array-like query param - multiple attributes may provided.

A sort direction (`ASC, DESC`) for each attribute may by provided with `sort_directions` array-like param. When not provided, `ASC` is used.

Also, a `locale` parameter may be provided to specify which language should be used when sorting [localized content](doc-341959).


## Example query:

```text title="Example query"
?sort_by[]=status&sort_by[]=title&sort_directions[]=DESC&locale=no
```

It is equivalent to following SQL query:

```sql
ORDER BY status DESC, title->>'no' ASC
```
