def SortListItems(self, col=-1, ascending=1): """ Sort the list on demand. Can also be used to set the sort column and order. """ ColumnSorterMixin.SortListItems(self, col, ascending) self.refresh_col_headers()
def SortListItems(self, col=-1, ascending=1): if col in self.enabled_columns: col = self.enabled_columns.index(col) else: col = 0 ColumnSorterMixin.SortListItems(self, col=col, ascending=ascending)