aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation
diff options
context:
space:
mode:
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>";