hi, i'm writing a poker game project and encountered some problem while i try to sort the cards in hand.
so far, i have a deck of 52 cards, each of the player is assigned for 3 cards.
the questions, I don't know how to sort the cards in the players' hand.
for example, playerHand = [TC, 3S, 5S]
how do I sort the cards to [3S, 5S, TC]? (as T = 10, Ace = 14)
I know it's somehow like ranking the values and then sort them.
however, i have no idea where to start. :(