Closed lhoucinecherif closed 2 years ago
This looks good! Could you also add a test ? This test might be helpful to reproduce your use case https://github.com/itemsapi/itemsjs/blob/master/tests/searchSpec.js#L88
It would be nice to have this feature, do we know when can we have it merged ?
This PR is merged with tests. Please look into #109
Hi, This mini update make aggregations configurable using a custom sorting array (related issue : https://github.com/itemsapi/itemsjs/issues/94) : we can now sort aggregations like this :
So we can play with all available sorting keys , and override the hardcoded 'selected' key if we want The old behavior is still kept (backwards compatibility )