Skip to content

Commit

Permalink
Merge pull request #6740 from nextcloud/apps-management-sorting-updates
Browse files Browse the repository at this point in the history
Show apps with available updates first
  • Loading branch information
jancborchardt committed Oct 4, 2017
2 parents 73554a3 + 5c34b2d commit 5412c23
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions settings/js/apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}

Expand Down

0 comments on commit 5412c23

Please sign in to comment.