summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/apps.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js
index d5322bf6bd6..39e800636cb 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -113,9 +113,11 @@ OC.Settings.Apps = OC.Settings.Apps || {
appList.sort(function (a, b) {
if (a.active !== b.active) {
return (a.active ? -1 : 1)
- } else {
- return OC.Util.naturalSortCompare(a.name, b.name);
}
+ if (a.update !== b.update) {
+ return (a.update ? -1 : 1)
+ }
+ return OC.Util.naturalSortCompare(a.name, b.name);
});
}