Sort menu by priority
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
4a1cbefc90
commit
7cd0340366
|
@ -137,6 +137,9 @@ class PublicTemplateResponse extends TemplateResponse {
|
|||
$list[] = $action;
|
||||
}
|
||||
}
|
||||
usort($list, function(IMenuAction $a, IMenuAction $b) {
|
||||
return $a->getPriority() > $b->getPriority();
|
||||
});
|
||||
return $list;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue