From bd2cfea3d9045b998f9ce86ee6bc90a401165c6b Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 15 Apr 2021 11:11:46 +0200 Subject: [PATCH] Fix reminders order --- www/common/outer/calendar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/common/outer/calendar.js b/www/common/outer/calendar.js index 0d5fa1f2d..3ae006d63 100644 --- a/www/common/outer/calendar.js +++ b/www/common/outer/calendar.js @@ -147,7 +147,9 @@ define([ var sendNotif = function () { ctx.Store.onReadyEvt.reg(send); }; var notifs = ev.reminders || []; - notifs.sort(); + notifs.sort(function (a, b) { + return a - b; + }); notifs.some(function (delayMinutes) { var delay = delayMinutes * 60000;