forked from deblan/side_menu
add ordered apps for all displays (#147)
This commit is contained in:
parent
07c7221ca2
commit
1971c6f500
2 changed files with 3 additions and 7 deletions
|
|
@ -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;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue