How to add ascending and descending sort to occurrences in facet context menu.
Hi, I am using the JSframework and would like to know how to add ascending and descending sort to occurrences in facet context menu. As it is now, it only works on the label option.
You can follow this documentation : https://developers.coveo.com/display/JsSearch/Facet+Component and change the value of "data-available-sorts" property.
It is not possible to sort occurences ascending in the index. You can only sort field/computedfield/label using ascending or descending values. All other type of sorts for group by request only support descending. The UI reflect this fact by "graying" out the ascending and descending option in the Facet menu when you sort by occurrences.