mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Sort apps on name and enabled status
This commit is contained in:
parent
0342b5fc43
commit
9ba59aee36
1 changed files with 8 additions and 0 deletions
|
|
@ -43,6 +43,14 @@ foreach($registeredApps as $app){
|
|||
}
|
||||
}
|
||||
|
||||
function app_sort($a, $b){
|
||||
if ($a['active'] != $b['active']){
|
||||
return $b['active'] - $a['active'];
|
||||
}
|
||||
return strcmp($a['name'], $b['name']);
|
||||
}
|
||||
usort($apps, 'app_sort');
|
||||
|
||||
// dissabled for now
|
||||
// $catagoryNames=OC_OCSClient::getCategories();
|
||||
// if(is_array($catagoryNames)){
|
||||
|
|
|
|||
Loading…
Reference in a new issue