fix #26: alphabetic order of apps

This commit is contained in:
Simon Vieille 2020-08-20 16:27:35 +02:00
parent 4f0fdd91f9
commit fae21390dd
Signed by: deblan
GPG key ID: 03383D15A1D31745

View file

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