diff --git a/strange_eons_to_arkhamdb.js b/strange_eons_to_arkhamdb.js index 616cc23..6aec70f 100644 --- a/strange_eons_to_arkhamdb.js +++ b/strange_eons_to_arkhamdb.js @@ -177,7 +177,16 @@ function build_card(component) { // TODO: parse out some keywords into their own fields - return card_data; + // order by keys + const ordered_card_data = Object.keys(card_data).sort().reduce( + function(obj, key) { + obj[key] = card_data[key]; + return obj; + }, + {} + ); + + return ordered_card_data; } var cards = [];