Skip to content

SectionIdentifier Sort Clause

The SectionIdentifier Sort Clause sorts search results by the Section IDs of the Content items.

Arguments

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

Note

Solr search engine uses the Query::SORT_DESC sort direction by default.

Example

1
2
$query = new LocationQuery();
$query->sortClauses = [new SortClause\SectionIdentifier()];
Read the Docs