Browse Source

Don't sort on app bundles

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
pull/4454/head
Lukas Reschke 9 years ago
parent
commit
0428254ed6
No known key found for this signature in database GPG Key ID: B9F6980CF6E759B1
  1. 22
      settings/js/apps.js

22
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) {

Loading…
Cancel
Save