Fix #28 monthly graph not ordered
parent
fa74d958f9
commit
0e6e456df1
|
@ -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 New Issue