# Id Sort Clause

> For the complete documentation index, see [llms.txt](https://doc.ibexa.co/en/saas/llms.txt).

Id Sort Clause

The `SortClause\Id` Sort Clause sorts search results by the ID of the URL.

## Arguments

- `sortDirection` (optional) - the direction of the sorting, either `\Ibexa\Contracts\Core\Repository\Values\URL\Query\SortClause::SORT_ASC` (default) or `\Ibexa\Contracts\Core\Repository\Values\URL\Query\SortClause::SORT_DESC`
