def METHOD_NAME(self, colnum, order=0):
    self.layoutAboutToBeChanged.emit()
    self.rootnode.children.METHOD_NAME(key=lambda k: k.rowdata[colnum], reverse=bool(order))
    self.layoutChanged.emit()