mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-27 06:52:35 -04:00
[calendar] sort events by level
This commit is contained in:
parent
71b5b5981e
commit
88a3c1f967
@ -119,5 +119,9 @@ export class Calendar {
|
|||||||
this.eventsByDate[k].push(event);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user