Sorting an Admin menu

How admin menus can be sorted

By default, admin menus are sorted by the sort order of their entries. However, since some menus are long, alphabetical sorting is more desirable.

This was first done in Zen Cart 1.5.7, where the Tools menu is presented in alphabetical order.

This can be controlled (and disabled) in admin/includes/languages/english.php in the category MENU_CATEGORIES_TO_SORT_BY_NAME.

To sort a Configuration menu entry (such as My Store) by name, modify admin/configuration.php to check the $gID parameter in the select at the start of the tbody, and order by configuration_title rather than sort_order for the desired menus.

Still have questions? Use the Search box in the upper right, or try the full list of FAQs. If you can't find it there, head over to the Zen Cart support forum and ask there in the appropriate subforum. In your post, please include your Zen Cart and PHP versions, and a link to your site.

Is there an error or omission on this page? Please post to General Questions on the support forum. Or, if you'd like to open a pull request, just review the guidelines and get started. You can even PR right here.
Last modified June 12, 2021 by Scott C Wilson (a239b741).