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.
Field Sort Clause¶
The Field
Sort Clause sorts search results by the value of one of the content items' fields.
Search results of the provided content type are sorted in field value order. Results of the query that don't belong to the content type are ranked lower.
Arguments¶
typeIdentifier
- string representing the identifier of the content type to which the field belongsfieldIdentifier
- string representing the identifier of the field to sort by - (optional)sortDirection
- Query or LocationQuery constant, eitherQuery::SORT_ASC
orQuery::SORT_DESC
Limitations¶
The Field
Sort Clause isn't available in Repository filtering.
Example¶
1 2 |
|