(self, columnIndex=None, columnName=None, reverse=0)
return
Changes the order that records are sorted in, which will
           be reflected in the table upon redrawing
Changes the order that records are sorted in, which will
           be reflected in the table upon redrawing
Changes the order that records are sorted in which will be reflected in the table upon redrawing
def setSortOrder(self, columnIndex=None, columnName=None, reverse=0):
        """Changes the order that records are sorted in, which will
           be reflected in the table upon redrawing"""

        if columnName != None and columnName in self.columnNames:
            self.sortkey = columnName
        elif columnIndex != None:
            self.sortkey = self.getColumnName(columnIndex)
        else:
            return
        self.reclist = list(self.createSortMap(self.reclist, self.sortkey, reverse))
        if self.filteredrecs != None:
            self.filteredrecs = self.createSortMap(self.filteredrecs, self.sortkey, reverse)
        return
def setSortOrder ( self , columnIndex = None , columnName = None , reverse = 0 ) : if columnName != None and columnName in self . columnNames : self . sortkey = columnName elif columnIndex != None : self . sortkey = self . getColumnName ( columnIndex ) else : return self . reclist = list ( self . createSortMap ( self . reclist , self . sortkey , reverse ) ) if self . filteredrecs != None : self . filteredrecs = self . createSortMap ( self . filteredrecs , self . sortkey , reverse ) return