Sort by custom code using Comparator in SAP HYBRIS
I have a requirement to create a custom Sort Code and add some custom logic(basically no logic – keeping it blank and return 0) to it. I have define the beans for provider and comparator and defined required impex also. But somehow it’s still sorting by ‘relevance‘ and debugger is going to OOTB Comparator (here FacetDisplayNameComparator), instead of the custom comparator I created. Can someone help me understand what I am missing here ?
The beans I defined are: