mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2024-11-29 03:32:44 +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 legendary = [];
|
||||||
const rare = [];
|
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) {
|
for (let [time, value] of entries) {
|
||||||
labels.push(time);
|
labels.push(time);
|
||||||
total.push(value.total);
|
total.push(value.total);
|
||||||
|
|
Loading…
Reference in a new issue