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 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 ai1 = battlers[0];
|
||||
let ai2 = battlers[1];
|
||||
|
|
Loading…
Reference in New Issue