Skip to main content

Sorting refinements

With InstantSearch, you can customize the order of your refinement lists. You can sort them alphabetically or by occurrence (refinement count). For each option, you can choose ascending or descending order.

Example

Use the RefinementList widget to specify how it’s sorted with the sortBy property. For example in the RefinementList’s code sample, sortBy="['isRefined', 'count']" will display the refined facets before the non-refined ones, and will then sort them by decreasing count.
Last modified on February 10, 2026