In Magento 2, suppose we sort by price with DESC order in payload then they sort products by variant's lowest price and that lowest price will be in descending order of all other product's variant price.
Suppose I have 2 configurable products A and B.
A have variants whose prices are 10,20,30,40 B have variants whose prices are 15,20,25,30
It will show correct sorting for Low to High. But for High to low sorting, they should sort like A then B because A has the highest value of 40
But currently, it is showing sort B then A because Magento choose the lowest value of the product which is 15 for B and 10 for A, so they sort B then A
Please suggest me way to fix it.
Thank you, Vijay Gupta