diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-04-25 20:27:37 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2017-04-26 20:07:50 +0200 |
commit | 0428254ed676723633e49ffba5a2dc67e5ed8baf (patch) | |
tree | 196ff9afc51e22a6989e743807ca33b2129740a1 /settings/js/apps.js | |
parent | 4b1ac3fef204b9ac252766fb7496b3ec5fbed731 (diff) | |
download | nextcloud-server-0428254ed676723633e49ffba5a2dc67e5ed8baf.tar.gz nextcloud-server-0428254ed676723633e49ffba5a2dc67e5ed8baf.zip |
Don't sort on app bundles
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'settings/js/apps.js')
-rw-r--r-- | settings/js/apps.js | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js index bff28a60abb..a8ef11c0856 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -109,17 +109,19 @@ OC.Settings.Apps = OC.Settings.Apps || { var template = Handlebars.compile(source); if (appList.length) { - appList.sort(function(a,b) { - if (a.active !== b.active) { - return (a.active ? -1 : 1) - } else { - var levelDiff = b.level - a.level; - if (levelDiff === 0) { - return OC.Util.naturalSortCompare(a.name, b.name); + if(categoryId !== 'app-bundles') { + appList.sort(function (a, b) { + if (a.active !== b.active) { + return (a.active ? -1 : 1) + } else { + var levelDiff = b.level - a.level; + if (levelDiff === 0) { + return OC.Util.naturalSortCompare(a.name, b.name); + } + return levelDiff; } - return levelDiff; - } - }); + }); + } var firstExperimental = false; _.each(appList, function(app) { |