aboutsummaryrefslogtreecommitdiffstats
path: root/settings/apps.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings/apps.php')
-rw-r--r--settings/apps.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/settings/apps.php b/settings/apps.php
index 27b4c17f9e6..12a7bf77202 100644
--- a/settings/apps.php
+++ b/settings/apps.php
@@ -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)){