code: def sort(self):
          beams = [v for (_, v) in self.entries.items()]
          sortedBeams = sorted(beams, reverse=True, key=lambda x: x.prTotal*x.prText)
          return [x.labeling for x in sortedBeams]