From 0428254ed676723633e49ffba5a2dc67e5ed8baf Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Tue, 25 Apr 2017 20:27:37 +0200 Subject: [PATCH] Don't sort on app bundles Signed-off-by: Lukas Reschke --- settings/js/apps.js | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/settings/js/apps.js b/settings/js/apps.js index bff28a60ab..a8ef11c085 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) {