Skip to content

SectionName Sort Clause

The SectionName Sort Clause sorts search results by the Section name of the Content items.

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\SectionName()];
Read the Docs