Fix #28 monthly graph not ordered

pull/1/head
Made Baruna 2021-04-07 16:23:12 +08:00
parent fa74d958f9
commit 0e6e456df1
1 changed files with 1 additions and 1 deletions

View File

@ -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);