Skip to content

URL Sort Clause

The SortClause\Url Sort Clause sorts search results by the URLs.

Arguments

  • 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

Example

1
2
3
4
5
6
7
use Ibexa\Contracts\Core\Repository\Values\URL\URLQuery;
use Ibexa\Contracts\Core\Repository\Values\URL\Query\SortClause;

// ...

$query = new URLQuery();
$query->sortClauses = [new SortClause\URL()];