itemsapi / itemsjs

Extremely fast faceted search engine in JavaScript - lightweight, flexible, and simple to use
Apache License 2.0
346 stars 41 forks source link

Support aggregations not being sorted by selected #114

Closed mulquin closed 2 years ago

mulquin commented 2 years ago

I found automatic sorting by selected filters on aggregations to be jarring. This PR adds the chosen_filters_on_top configuration for aggregations as discussed in #39. The default behaviour is for it to be set to true.

I wasn't quite sure which test file to put the tests so please advise if there is a better place for them.

cigolpl commented 2 years ago

Thanks for your code and putting configuration variable into documentation. Great job!

This PR is released now in itemsjs@2.1.17