Need help with sorting cards

I am building a poker program, and I got an issues sorting the cards. I want the cards to be sorted by rank (1 ,2 , 3 and so on) but the sort function I have sort them by suit (letter) Any suggestions will be appreciated.
Topic archived. No new replies allowed.