add ordered apps for all displays (#147)

This commit is contained in:
Simon Vieille
2022-10-27 21:52:29 +02:00
parent 07c7221ca2
commit 1971c6f500
2 changed files with 3 additions and 7 deletions
+1 -5
View File
@@ -93,7 +93,7 @@ class NavController extends Controller
]);
}
$apps = $this->appRepository->getVisibleApps();
$apps = $this->appRepository->getOrderedApps();
$categoriesLabels = $this->categoryRepository->getOrderedCategories();
$hiddenApps = $this->config->getAppValueArray('big-menu-hidden-apps', '[]');
$isForced = $this->config->getAppValueBool('force', '0');
@@ -178,10 +178,6 @@ class NavController extends Controller
foreach ($items as $category => $value) {
if (empty($items[$category]['apps'])) {
unset($items[$category]);
} else {
uasort($items[$category]['apps'], function ($a, $b) {
return ($a['name'] < $b['name']) ? -1 : 1;
});
}
}