From f6ce45b3736c0d2021299b58ae05b79d7996438a Mon Sep 17 00:00:00 2001 From: Fabian Ebner Date: Tue, 15 Dec 2020 13:01:33 +0100 Subject: [PATCH] prune sim: fix #3192: by fixing usage of sort() Signed-off-by: Fabian Ebner --- docs/prune-simulator/prune-simulator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/prune-simulator/prune-simulator.js b/docs/prune-simulator/prune-simulator.js index 5533c2d6..fd68b796 100644 --- a/docs/prune-simulator/prune-simulator.js +++ b/docs/prune-simulator/prune-simulator.js @@ -452,7 +452,7 @@ Ext.onReady(function() { // ordering here and iterating backwards through days // ensures that everything is ordered timesOnSingleDay.sort(function(a, b) { - return a < b; + return b - a; }); let backups = [];