followup: use arrow function for sorting
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
f6ce45b373
commit
6a99b930c4
@ -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 = [];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user