Is there a configuration available to sort the fac...
# suitecommerce
s
Is there a configuration available to sort the facet values of a facet?
c
Have you tried Website Steup => Search Index => Sort Fields?
m
That is for sorting of the items, but not for the facet values, you should customize that
s
Thanks @Chris and @Martin. You're right, Martin. I need a customized solution for this.
c
I think I did this awhile back... lemme do some checking.
e
They sort this alphabetically based on the internal id of the facet. Review the code and you will notice that. If you have the option to put a prefix (like aaa, aab, aac, etc depending on the number of your facets) then it would work natively. Otherwise you need to put some logic in the middle.
s
Thanks @eminero but my question was about facet values of a facet. Currently, I see they're respecting the order in which they're created in NetSuite.
c
It looks like you might have an opportunity to apply a sort in the
Facets.FacetedNavigationItem.View
_.wrap
the getContext method with your logic
🙌 2
e
@Sohan Kumar Dash I see, that is a different question. I think I have not had to do that. You will need to review the code and see where the values are finally send to the right template.
👍 1