Sorting

You can perform sorting on RAM-based retrievable fields. In the Data model property, or advanced schema index field configuration, select the RAM based option for all the fields on which you want to apply sorting.

You can specify one or several sort clauses to be treated one after the other cumulatively. For example, if our index schema has the lastname and age index fields, we could want to sort:

  • First on the lastname field by ascending order.

  • Then on the age field by descending order.

Note: Sorting can also be performed dynamically at query time using specific Search API parameters. For more information, see the Sorting and Grouping Parameters in the Search API Parameters Reference.

This task shows you how to:

See Also
About Ranking