In the Find user interface, users can choose the sort order for their search results. You can configure the options to display, and set a default sort option.
To configure the sort order
Go to the Find home directory.
Open config.json
in a text editor.
Find the search
section, or create one if it does not exist.
defaultSortOption
property to the name of the sort option that you want to use by default. You must define this option in the sortOptions
object.Add a sortOptions
object to define the list of sort options that you want to make available. You can use your own name for each property in this object. Each entry must have the following properties:
sort | The IDOL Content component sort option. This property is the value that Find sends to Content in the Sort parameter. For the available options, refer to the IDOL Content Component Reference. |
label | The name to use in the Find user interface for this sort option. |
{ "search": { "defaultSortOption": "bestMatch", "sortOptions": { "bestMatch": { "sort": "relevance", "label": "by relevance" }, "newest": { "sort": "date", "label": "by date" } } } }
Restart Find to apply your configuration changes.