summaryrefslogtreecommitdiffstats
path: root/settings/apps.php
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2013-10-14 10:54:38 +0200
committerFrank Karlitschek <frank@owncloud.org>2013-10-14 10:54:38 +0200
commitf06df170cb287009ece7098ff2a28a7af2a0b545 (patch)
tree09b85235958b4af33a6ab3c06412689806147369 /settings/apps.php
parentf3336f8877771e53d303f6f939f0005fa9692b7a (diff)
downloadnextcloud-server-f06df170cb287009ece7098ff2a28a7af2a0b545.tar.gz
nextcloud-server-f06df170cb287009ece7098ff2a28a7af2a0b545.zip
finally fix the app sorting
Diffstat (limited to 'settings/apps.php')
-rw-r--r--settings/apps.php17
1 files changed, 0 insertions, 17 deletions
diff --git a/settings/apps.php b/settings/apps.php
index 20b12887554..96b6d21b502 100644
--- a/settings/apps.php
+++ b/settings/apps.php
@@ -28,24 +28,7 @@ OC_App::loadApps();
OC_Util::addStyle( "settings", "settings" );
OC_App::setActiveNavigationEntry( "core_apps" );
-function app_sort( $a, $b ) {
-
- if ($a['active'] !== $b['active']) {
-
- return $b['active'] - $a['active'];
-
- }
-
- if ($a['internal'] !== $b['internal']) {
- return $b['internal'] - $a['internal'];
- }
-
- return strcmp($a['name'], $b['name']);
-
-}
-
$combinedApps = OC_App::listAllApps();
-usort( $combinedApps, 'app_sort' );
$tmpl = new OC_Template( "settings", "apps", "user" );