diff options
author | Julius Härtl <jus@bitgrid.net> | 2017-10-03 15:11:11 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2017-10-03 15:11:11 +0200 |
commit | 5c34b2d4bb40614fd55e56d2c7e0d46b9fda7a7a (patch) | |
tree | 0540836ce958239570c3e9979a5ad794228d815a /settings | |
parent | 7bac8a32b4e2dc41bd81445330acce82e0456a99 (diff) | |
download | nextcloud-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.js | 6 |
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); }); } |