summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2017-10-03 15:11:11 +0200
committerJulius Härtl <jus@bitgrid.net>2017-10-03 15:11:11 +0200
commit5c34b2d4bb40614fd55e56d2c7e0d46b9fda7a7a (patch)
tree0540836ce958239570c3e9979a5ad794228d815a /settings
parent7bac8a32b4e2dc41bd81445330acce82e0456a99 (diff)
downloadnextcloud-server-5c34b2d4bb40614fd55e56d2c7e0d46b9fda7a7a.tar.gz
nextcloud-server-5c34b2d4bb40614fd55e56d2c7e0d46b9fda7a7a.zip
App management: add update availability to sorting
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'settings')
-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);
});
}