]> source.dussan.org Git - nextcloud-server.git/commitdiff
Sort internal apps above 3rdparty apps
authorRobin Appelman <icewind@owncloud.com>
Thu, 31 Jan 2013 16:49:58 +0000 (17:49 +0100)
committerRobin Appelman <icewind@owncloud.com>
Thu, 31 Jan 2013 16:49:58 +0000 (17:49 +0100)
settings/apps.php

index 4f8eba159c2270189dcad22b09232c281c61ee3d..b9ed2cac93a6a12f8562bf0de58bb458c25f9237 100644 (file)
@@ -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']);
 
 }