def sort(self, view_data):
        """Sort the views."""

        indexes = tuple([x for x in range(0, len(view_data[0]) - 1)])
        sorted_views = sorted(view_data, key=itemgetter(*indexes))
        if self.reverse:
            sorted_views = sorted_views[::-1]
        for index in range(0, len(sorted_views)):
            self.window.set_view_index(sorted_views[index][-1], self.group, index)
dataset/ETHPy150Open facelessuser/TabsExtra/tabs_extra.py/TabsExtraSortCommand.sort/original