Sort keys for table

This commit is contained in:
Thomas Forgione 2019-03-28 16:31:10 +01:00
parent c9ec754c21
commit c309967a2b
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 4 additions and 1 deletions

View File

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