# URL Sort Clauses

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

URL Sort Clauses

URL Sort Clauses are the sorting options for URLs. They're only supported by [URL Search (`URLService::findUrls`)](https://doc.ibexa.co/en/5.0/content_management/url_management/url_api/index.md).

All URL Sort Clauses can take the following optional argument:

- `sortDirection` - 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`

| Sort Clause                                                                                 | Sorting based on |
| ------------------------------------------------------------------------------------------- | ---------------- |
| [Id](https://doc.ibexa.co/en/5.0/search/url_search_reference/id_url_sort_clause/index.md)   | URL ID           |
| [URL](https://doc.ibexa.co/en/5.0/search/url_search_reference/url_url_sort_clause/index.md) | URL address      |
