mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2024-11-25 08:16:28 +01:00
Fix #28 monthly graph not ordered
This commit is contained in:
parent
fa74d958f9
commit
0e6e456df1
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@
|
|||
const legendary = [];
|
||||
const rare = [];
|
||||
|
||||
const entries = Object.entries(data);
|
||||
const entries = Object.entries(data).sort((a, b) => a[0].localeCompare(b[0]));
|
||||
for (let [time, value] of entries) {
|
||||
labels.push(time);
|
||||
total.push(value.total);
|
||||
|
|
Loading…
Reference in a new issue