Browse Source
Sort menu by priority
Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/8051/head
Julius Härtl
9 years ago
committed by
Roeland Jago Douma
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with
3 additions and
0 deletions
-
lib/public/AppFramework/Http/Template/PublicTemplateResponse.php
|
|
|
@ -137,6 +137,9 @@ class PublicTemplateResponse extends TemplateResponse { |
|
|
|
$list[] = $action; |
|
|
|
} |
|
|
|
} |
|
|
|
usort($list, function(IMenuAction $a, IMenuAction $b) { |
|
|
|
return $a->getPriority() > $b->getPriority(); |
|
|
|
}); |
|
|
|
return $list; |
|
|
|
} |
|
|
|
|
|
|
|
|