code: def _sort_cards(self, cards: Generator) -> list:
          '''sort cards by blocknum and blockseq'''
  
          return sorted([card.__dict__ for card in cards],
                              key=itemgetter('blocknum', 'blockseq', 'cardseq')f _sort_cards(self, cards: Generator) -> list:
          '''sort cards by blocknum and blockseq'''
  
          return sorted([card.__dict__ for card in cards],
                              key=itemgetter('blocknum', 'blockseq', 'cardseq'))
docs: sort cards by blocknum and blockseq