Sort list of cards by their codes

This commit is contained in:
Adam Goldsmith 2021-09-08 17:14:14 -04:00
parent 6ce8f04f42
commit df38eadc4c

View File

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