Sort list of cards by their codes
This commit is contained in:
parent
6ce8f04f42
commit
df38eadc4c
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user