Page History
...
The search sort field configuration block contains not only the available sort fields but also the and the possibility to configure a default sort field & the default and sort order.
Below is an example of the sort configuration.
...
- defaultSort (optional): The default field on which the search results will be sorted, this must be a reference to an existing search sort field bean. If none is given relevance will be the default. Sorting according to the internal relevance algorithm is always available, even though it's not explicitly mentioned in the sortFields section.
- defaultSortOrder (optional): The default sort order can either be asc or desc.
- sortFields (mandatory): The list of available sort options, each element in this list must link to an existing sort field configuration bean.
...
Overview
Content Tools