diff --git a/strange_eons_to_arkhamdb.js b/strange_eons_to_arkhamdb.js index 2f1f64f..ab7bda1 100644 --- a/strange_eons_to_arkhamdb.js +++ b/strange_eons_to_arkhamdb.js @@ -176,4 +176,8 @@ while (member_iter.hasNext()) { var card_data = build_card(component); cards.push(card_data); } + +cards.sort(function (a, b) { + return parseInt(a.code) - parseInt(b.code); +}); println(JSON.stringify(cards, null, 4));