Fix #28 monthly graph not ordered

This commit is contained in:
Made Baruna 2021-04-07 16:23:12 +08:00
parent fa74d958f9
commit 0e6e456df1

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