order menu_list by description, not name

This commit is contained in:
friendica 2014-02-07 01:49:34 -08:00
parent 14fd940e08
commit c80325b427

View File

@ -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;