diff --git a/src/calendar/helpers.js b/src/calendar/helpers.js index ad617ad5..e5abeee0 100644 --- a/src/calendar/helpers.js +++ b/src/calendar/helpers.js @@ -119,5 +119,9 @@ export class Calendar { this.eventsByDate[k].push(event); } } + for (let date in this.eventsByDate) { + if (!this.eventsByDate.hasOwnProperty(date)) { continue; } + this.eventsByDate[date].sort((a, b) => b.level - a.level); + } } }