summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2017-10-04 15:23:03 +0200
committerGitHub <noreply@github.com>2017-10-04 15:23:03 +0200
commit5412c239f2ca128760c8d12de3bcd01384ddfd3f (patch)
tree84ec76e851d43b78d6312bd708a30228e7c3bde6
parent73554a3228d1354aceac3ad90d344144a3fb1bd9 (diff)
parent5c34b2d4bb40614fd55e56d2c7e0d46b9fda7a7a (diff)
downloadnextcloud-server-5412c239f2ca128760c8d12de3bcd01384ddfd3f.tar.gz
nextcloud-server-5412c239f2ca128760c8d12de3bcd01384ddfd3f.zip
Merge pull request #6740 from nextcloud/apps-management-sorting-updates
Show apps with available updates first
-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);
});
}