Algolia sorting

How to implement different types of sorting (ex. price(asc, desc), popularity etc. ) using javascript api. Please help me.

Hi there,

There’s a guide illustrating how to sort results by using a specific attribute:

https://www.algolia.com/doc/tutorials/indexing/ranking/how-to-sort-the-results-with-a-specific-attribute/

Here’s also another guide on how to build a sorting UI widget using Algolia’s InstantSearch library:

https://www.algolia.com/doc/tutorials/search-ui/instant-search/sorting/sorting-ui-widget/instantsearchjs/

Let me know if this helps you out!