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;