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.
CustomField Sort Clause¶
The CustomField
Sort Clause
sorts search results by raw search index fields.
Arguments¶
field
- string representing the search index field name- (optional)
sortDirection
- Query or LocationQuery constant, eitherQuery::SORT_ASC
orQuery::SORT_DESC
Limitations¶
Caution
To keep your project search engine independent, do not use the CustomField
Sort Clause in production code.
Valid use cases are: testing, or temporary (one-off) tools.
The CustomField
Sort Clause is not available in Repository filtering.
Example¶
1 2 |
|