summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2013-01-31 10:19:04 -0800
committerJan-Christoph Borchardt <hey@jancborchardt.net>2013-01-31 10:19:04 -0800
commit5bf7791b4212c6dba2ce7289841c71f8177cfa3f (patch)
tree9c9f45b9c9b1ece6b8989e20b819dc3c4e90b946 /settings
parent878cf9bd3cbee5abd167ddbfd283af6942890297 (diff)
parenta224d80f4d3266fa9b046aa13081285c4efd61b8 (diff)
downloadnextcloud-server-5bf7791b4212c6dba2ce7289841c71f8177cfa3f.tar.gz
nextcloud-server-5bf7791b4212c6dba2ce7289841c71f8177cfa3f.zip
Merge pull request #1396 from owncloud/apps_sorting
Sort internal apps above 3rdparty apps
Diffstat (limited to 'settings')
-rw-r--r--settings/apps.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/settings/apps.php b/settings/apps.php
index 4f8eba159c2..b9ed2cac93a 100644
--- a/settings/apps.php
+++ b/settings/apps.php
@@ -36,6 +36,10 @@ function app_sort( $a, $b ) {
}
+ if ($a['internal'] != $b['internal']) {
+ return $b['internal'] - $a['internal'];
+ }
+
return strcmp($a['name'], $b['name']);
}