I would like to sort each of my layered navigation filters by # elements in each filter.
Here's what it shows now -
What I want to show -
I looked at the /layer/filter.phtml directory, but I can't figure out how to sort magento collections.
Ideally, I want something like this:
$ this-> getItems () → order ('Count Desc')
How can i do this?
Brian source
share