Sort keys for table
This commit is contained in:
parent
c9ec754c21
commit
c309967a2b
|
@ -83,7 +83,10 @@ function parse(data) {
|
||||||
let content = JSON.parse(data);
|
let content = JSON.parse(data);
|
||||||
let parsed = {ais: [], battles: {}};
|
let parsed = {ais: [], battles: {}};
|
||||||
|
|
||||||
for (let key in content) {
|
let keys = Object.keys(content);
|
||||||
|
keys.sort();
|
||||||
|
|
||||||
|
for (let key of keys) {
|
||||||
let battlers = key.split('/');
|
let battlers = key.split('/');
|
||||||
let ai1 = battlers[0];
|
let ai1 = battlers[0];
|
||||||
let ai2 = battlers[1];
|
let ai2 = battlers[1];
|
||||||
|
|
Loading…
Reference in New Issue