App management: add update availability to sorting

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2017-10-03 15:11:11 +02:00
parent 7bac8a32b4
commit 5c34b2d4bb
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 4 additions and 2 deletions

View File

@ -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);
});
}