nodes: 0, module; 1, function_definition; 2, function_name:sort; 3, parameters; 4, block; 5, identifier:self; 6, identifier:column; 7, default_parameter; 8, expression_statement; 9, expression_statement; 10, expression_statement; 11, return_statement; 12, identifier:order; 13, attribute; 14, comment:"""Overriding sort method."""; 15, assignment; 16, call; 17, True; 18, identifier:Qt; 19, identifier:AscendingOrder; 20, identifier:ascending; 21, comparison_operator:order == Qt.AscendingOrder; 22, attribute; 23, argument_list; 24, identifier:order; 25, attribute; 26, attribute; 27, identifier:sort; 28, attribute; 29, keyword_argument; 30, identifier:Qt; 31, identifier:AscendingOrder; 32, identifier:self; 33, identifier:model; 34, identifier:self; 35, identifier:COLUMN_INDEX; 36, identifier:order; 37, identifier:ascending
code: def sort(self, column, order=Qt.AscendingOrder):
          """Overriding sort method."""
          ascending = order == Qt.AscendingOrder
          self.model.sort(self.COLUMN_INDEX, order=ascending)
          return True