Sort hand by card rank before trying to determine hand rank.