[calendar] sort events by level
This commit is contained in:
parent
2118f21802
commit
73bfa161a9
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue