finalize simulation for consumer

def finalize(self):
        """
        finalize simulation for consumer
        """
        # todo sort self.result by path_num
        if self.result:
            self.result = sorted(self.result, key=lambda x: x[0])
            p, r = map(list, zip(*self.result))
            self.result = r