This documentation is for a version that has reached its End Of Life. Such versions are no longer supported and don't receive security updates. Consider updating to a newer version.
IsMainLocation Sort Clause¶
The Location\IsMainLocation
Sort Clause sorts search results by whether their location is the main location of the content item.
Locations that aren't main locations are ranked as lower values (for example, with ascending order they're returned first).
Arguments¶
- (optional)
sortDirection
- Query or LocationQuery constant, eitherQuery::SORT_ASC
orQuery::SORT_DESC
Limitations¶
The Location\IsMainLocation
Sort Clause isn't available in Repository filtering.
Example¶
1 2 |
|