Skip to content

Priority Sort Clause

The Location\Priority Sort Clause sorts search results by the priority of the Location.

Arguments

  • sortDirection (optional) - Query or LocationQuery constant, either Query::SORT_ASC or Query::SORT_DESC.

Example

1
2
$query = new LocationQuery();
$query->sortClauses = [new SortClause\Location\Priority()];