Skip to content

Sort Clause reference

Sort Clauses are the sorting options for Content and Location Search and Repository filtering.

Capabilities of individual Sort Clauses can depend on the search engine.

All Sort Clauses can take the following optional argument:

  • sortDirection - the direction of the sorting, either Query::SORT_ASC (default) or Query::SORT_DESC

Sort Clauses

Sort Clause Sorting based on Supported by
ContentId Content items' ID Content and Location Search, and Filtering
ContentName Content names Content and Location Search, and Filtering
DateModified The date when content was last modified Content and Location Search, and Filtering
DatePublished The date when content was created Content and Location Search, and Filtering
Depth Location depth in the Content tree Location Search, Filtering
Field Content of one of Content item's Fields Content and Location Search
Id Location ID Location Search, Filtering
IsMainLocation Whether a Location is the main Location of a Content item Location only
MapLocationDistance Distance between the location contained in a MapLocation Field and the provided coordinates Content and Location Search
Path PathString of the Location Location Search, Filtering
Priority Location priority Location Search, Filtering
Random Random seed Content and Location Search
SectionIdentifier ID of the Section content is assigned to Content and Location Search, and Filtering
SectionName Name of the Section content is assigned to Content and Location Search, and Filtering
Visibility Whether the Location is visible or not Location Search, Filtering
Read the Docs