def _sort_cards(self):
        '''
        Sort all the seven cards ascendingly according to RANK_LOOKUP
        '''
        self.all_cards = sorted(
            self.all_cards, key=lambda card: self.RANK_LOOKUP.index(card[1]))

        Sort all the seven cards ascendingly according to RANK_LOOKUP
        
rlcard/games/limitholdem/utils.py