I am working with Magento 2, I need to sort the product on category page based n product attribute.
- Product attribute type is dropdown.
- I will sort the option while creating attribute.
Now in front if I select this attribute product should sort based on option position.
Product Attribute name : Test
Attribute type is dropdown.
Option 1: sort1
Option 2: sort2
I have two products. Both has diff value assign. Now if I change the options position it should sort accordingly in frontend.
Thanks in advance.