I'm facing a problem with attribute sorting in magento. I have created a drop down attribute for a product that I'm using to sort the category list. The problem I encounter is that the sorting is made by the values not by the order that I have given them.
Example: I have the attribute color with the options:
1. Red
2. Black
3. Green
When I choose to sort by color the order is Black, Green, Red, but i need it to be Red, Black, Green.
I found a patch that theoretically will solve the problem but i cant make it work. https://gist.github.com/colinmollenhour/4082426
My magento version is 1.7.0.2.
Thanks.