In our project we have several refinement lists and they're functioning correctly. However they're default sorting, count the alphanumeric, is being applied. In our situation I have a 'rank' attribute on each of my refinement list items but I can't access it as the API is controlling what's coming back.
According to the documentation there only appears to be three choices for sorting.
Is there a way around that?
For example, this code yields the following results.
search.addWidget(
instantsearch.widgets.refinementList({
container: '#outsideDiameter',
attributeName: 'outsideDiameter.description',
operator: 'or',
sortBy: ["name:asc"],
limit: 5,
showMore: true,
templates: {
header: getHeader('Outside Diameter'),
},
})
);
I want the list items to be sorted by the fractional values ascendingly. In other words: 3/16", 1/4", 5/16", ..., 4.5mm, 6.0mm, etc... Each values does have the 'rank' attribute that I mentioned before.
Is that possible?