> ## Documentation Index
> Fetch the complete documentation index at: https://algolia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sorting refinements in InstantSearch Android

> Learn how to sort your refinement lists with InstantSearch Android.

## 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](/doc/api-reference/widgets/refinement-list/android) to specify how it's sorted with the [`sortBy`](/doc/api-reference/widgets/refinement-list/android#param-sort-by) 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.
