aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-07 01:49:34 -0800
committerfriendica <info@friendica.com>2014-02-07 01:49:34 -0800
commitc80325b4279b6f19540416064382755ca5e6eccd (patch)
treecb959c7969402bcc3a70acfb5088ec34f43402f5 /include
parent14fd940e08e02f1f2b244dfa6751f9778284235b (diff)
downloadvolse-hubzilla-c80325b4279b6f19540416064382755ca5e6eccd.tar.gz
volse-hubzilla-c80325b4279b6f19540416064382755ca5e6eccd.tar.bz2
volse-hubzilla-c80325b4279b6f19540416064382755ca5e6eccd.zip
order menu_list by description, not name
Diffstat (limited to 'include')
-rw-r--r--include/menu.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/menu.php b/include/menu.php
index 813d7bcdb..b879af845 100644
--- a/include/menu.php
+++ b/include/menu.php
@@ -116,7 +116,7 @@ function menu_list($channel_id, $name = '', $flags = 0) {
$sel_options .= (($name) ? " and menu_name = '" . protect_sprintf(dbesc($name)) . "' " : '');
$sel_options .= (($flags) ? " and menu_flags = " . intval($flags) . " " : '');
- $r = q("select * from menu where menu_channel_id = %d $sel_options order by menu_name",
+ $r = q("select * from menu where menu_channel_id = %d $sel_options order by menu_desc",
intval($channel_id)
);
return $r;