ui: prune: fix order of keep reasons
This is the same as fix 40ff84b138bb7127ecc05a2f587cca4e7a917810 in proxmox-backup. When returning a boolean instead of the expected {negative, 0, positive}, the behavior is browser-dependent. Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
1f30e66155
commit
971bbdc561
@ -63,9 +63,7 @@ Ext.define('PVE.PruneInputPanel', {
|
||||
];
|
||||
let counter = {};
|
||||
|
||||
backups.sort(function(a, b) {
|
||||
return a.ctime < b.ctime;
|
||||
});
|
||||
backups.sort((a, b) => b.ctime - a.ctime);
|
||||
|
||||
let ruleIndex = -1;
|
||||
let nextRule = function() {
|
||||
|
Loading…
Reference in New Issue
Block a user