Sorting Subcategories By Name On The Category Page

Hello I’m on CS-Cart 4.2.2 and i want to sort my subcategories by name. The knowledge base only seems to explain the steps for earlier versions but not >3.0.



I noticed the fn.catalog.php has moved to app/functions folder but the overall code has changed.



Any ideas?



Thank you!

[quote name='mug' timestamp='1420814081' post='202087']

Hello I'm on CS-Cart 4.2.2 and i want to sort my subcategories by name. The knowledge base only seems to explain the steps for earlier versions but not >3.0.



I noticed the fn.catalog.php has moved to app/functions folder but the overall code has changed.



Any ideas?



Thank you!

[/quote]



Replace there



$sorting = db_sort($params, $sortings, 'position', 'asc');




with



$sorting = db_sort($params, $sortings, 'name', 'asc');




Hope this will help

As simple as that! Works fine, thank you!

[quote name='mug' timestamp='1421053365' post='202290']

As simple as that! Works fine, thank you!

[/quote]



You are welcome!