Improve the solution for #1545 by sorting the settings menu properly

to be naturally ordered and case insensitive.
This commit is contained in:
Bharat Mediratta
2010-12-29 17:31:28 -08:00
parent dd6da5e233
commit a8b0254e4a
3 changed files with 6 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ class Admin_View_Core extends Gallery_View {
module::event("admin_menu", $menu, $this);
$settings_menu = $menu->get("settings_menu");
sort($settings_menu->elements);
uasort($settings_menu->elements, array("Menu", "title_comparator"));
return $menu->render();
}