code: def sort(self, column, order=Qt.AscendingOrder):
          
          ascending = order == Qt.AscendingOrder
          self.model.sort(self.COLUMN_INDEX, order=ascending)
          return True
docs: Overriding sort method.