Merge pull request #6740 from nextcloud/apps-management-sorting-updates

Show apps with available updates first
This commit is contained in:
Jan-Christoph Borchardt 2017-10-04 15:23:03 +02:00 committed by GitHub
commit 5412c239f2
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) { appList.sort(function (a, b) {
if (a.active !== b.active) { if (a.active !== b.active) {
return (a.active ? -1 : 1) 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);
}); });
} }