public static void sortCards(CardArray cards) {
		CardArray DCards = new CardArray(); // diamond cards
		CardArray HCards = new CardArray(); // heart cards
		CardArray SCards = new CardArray(); // ...
		CardArray CCards = new CardArray();

		for (Card i : cards) {
			switch (i.suit()) {
			case DIAMONDS:
				DCards.add(i);
				break;
			case HEARTS:
				HCards.add(i);
				break;
			case SPADES:
				SCards.add(i);
				break;
			case CLUBS:
				CCards.add(i);
				break;
			}
		}

		cards.clear();
		sortSameSuitCards(cards, DCards);
		sortSameSuitCards(cards, HCards);
		sortSameSuitCards(cards, SCards);
		sortSameSuitCards(cards, CCards);
	}