Docs

Sort Search Results

Versionv3

To sort user search results, pass a field:order value to the sort parameter when making your request. The field is the name of the field to sort by, while order can be set to 1 for ascending order and -1 for descending.

Sorting by app_metadata or user_metadata is not supported.

Sample request

For example, to sort users in ascending order by the created_at field you can pass the value created_at:1 to the sort parameter:




Keep reading

For more information on sort and other parameters, see the Management API Explorer documentation.