followup: use arrow function for sorting

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-12-15 13:45:36 +01:00
parent f6ce45b373
commit 6a99b930c4
1 changed files with 2 additions and 5 deletions

View File

@ -449,11 +449,8 @@ Ext.onReady(function() {
});
});
// ordering here and iterating backwards through days
// ensures that everything is ordered
timesOnSingleDay.sort(function(a, b) {
return b - a;
});
// sort recent times first, backups array below is ordered now -> past
timesOnSingleDay.sort((a, b) => b - a)
let backups = [];