Merge pull request #6740 from nextcloud/apps-management-sorting-updates
Show apps with available updates first
This commit is contained in:
commit
5412c239f2
|
@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue