0

How could I sort the categories under layered navigation in Magento 1.7 by name instead the position? I need to sort the categories not the products list.

I have this:

Categories:
Category B
Category D
Category A

I would like to have this:

Categories:
Category A
Category B
Category C

I've tried to change the options via administration frontend settings but it's not working. And also I've tried to change the catalog.xml as follows but it's not working:

<reference name="product_list_toolbar">
    <action method="setDefaultDirection"><dir>desc</dir></action>
    <action method="setDefaultOrder"><dir>name</dir></action>
</reference>
1ry
  • 77
  • 10

1 Answers1

0

Try this Code

<reference name="product_list_toolbar">
    <action method="setDefaultDirection"><string>desc</string></action>
    <action method="setDefaultOrder"><string>name</string></action>
</reference>
MeenakshiSundaram R
  • 2,837
  • 3
  • 29
  • 41
  • I tried it. Other filters in the layered navigation are sorted fine. But the categories list is the only one which is not sorted by name. – 1ry Nov 20 '13 at 13:24