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'])) {
|
if (empty($items[$category]['apps'])) {
|
||||||
unset($items[$category]);
|
unset($items[$category]);
|
||||||
} else {
|
} 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