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 do not 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 bysortDirection
(optional) - Query or LocationQuery constant, eitherQuery::SORT_ASC
orQuery::SORT_DESC
.
Limitations¶
The Field
Sort Clause is not available in Repository filtering.
Example¶
1 2 |
|