If two players have the same cards, then the rank of the cards is compared. If the rank of the cards is the same as well, then the hand with the highest suit wins. Spades is considered the highest suit.