static int sort(Card a, Card b) { if (a.rank > b.rank) { return -1; } else if (a.rank < b.rank) { return 1; } else { return 0; } }