We have one custom attribute sortOrder with A - Z enum value. We have applied sorting (in Ascending order) to this attribute and it is working fine. Solr is correctly giving result based on sortOrder (A to Z)
Suppose 3 product (code 123, 234, 456 respectively) having same sortOrder A, then i want to further sort this 3 products based on their code attribute.
Is there any way I can write custom sort provider for product search and write our own comparator to match the result ?
I can further sort the product list (searchPageData.getResults) to re arrange items based on code for same sort order. But that too going to fail if product with same sort order come more than 25 (pagination issue).
Can anyone please suggest me how to achieve this ?