# 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/latest/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/latest/search/url_search_reference/id_url_sort_clause/index.md)   | URL ID           |
| [URL](https://doc.ibexa.co/en/latest/search/url_search_reference/url_url_sort_clause/index.md) | URL address      |
