From 1ad8307f2ffec4b87e5f378350aa5dd37d779d0c Mon Sep 17 00:00:00 2001 From: ben Date: Sun, 17 Aug 2008 20:00:48 +0000 Subject: The top tool menu is now alphabetically sorted. git-svn-id: https://code.elgg.org/elgg/trunk@1993 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/navigation/topbar_tools.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/views/default/navigation/topbar_tools.php b/views/default/navigation/topbar_tools.php index 209b04da4..18320d1b7 100644 --- a/views/default/navigation/topbar_tools.php +++ b/views/default/navigation/topbar_tools.php @@ -17,7 +17,12 @@ //var_export($menu); - if (is_array($menu) && sizeof($menu) > 0) { + if (is_array($menu) && sizeof($menu) > 0) { + $alphamenu = array(); + foreach($menu as $item) { + $alphamenu[$item->name] = $item; + } + ksort($alphamenu); ?> @@ -27,7 +32,7 @@