From 5c34b2d4bb40614fd55e56d2c7e0d46b9fda7a7a Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Tue, 3 Oct 2017 15:11:11 +0200 Subject: App management: add update availability to sorting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- settings/js/apps.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'settings/js') 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); }); } -- cgit v1.2.3