forked from deblan/side_menu
fix #26: alphabetic order of apps
This commit is contained in:
parent
4f0fdd91f9
commit
fae21390dd
|
@ -191,7 +191,9 @@ class NavController extends Controller
|
|||
if (empty($items[$category]['apps'])) {
|
||||
unset($items[$category]);
|
||||
} else {
|
||||
ksort($items[$category]['apps']);
|
||||
uasort($items[$category]['apps'], function ($a, $b) {
|
||||
return ($a['name'] < $b['name']) ? -1 : 1;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue