aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-17 20:00:48 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-17 20:00:48 +0000
commit1ad8307f2ffec4b87e5f378350aa5dd37d779d0c (patch)
tree99d76b522b6547707d0a91942897f5fe3de7a843 /views/default/navigation
parentec6d14b8588fb4026d9bd287a9412239dbea7867 (diff)
downloadelgg-1ad8307f2ffec4b87e5f378350aa5dd37d779d0c.tar.gz
elgg-1ad8307f2ffec4b87e5f378350aa5dd37d779d0c.tar.bz2
The top tool menu is now alphabetically sorted.
git-svn-id: https://code.elgg.org/elgg/trunk@1993 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/navigation')
-rw-r--r--views/default/navigation/topbar_tools.php9
1 files 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 @@
<ul>
<?php
- foreach($menu as $item) {
+ foreach($alphamenu as $item) {
echo "<li><a href=\"{$item->value}\">" . $item->name . "</a></li>";