nodes: 0, module; 1, function_definition; 2, function_name:sort_name; 3, parameters; 4, block; 5, identifier:self; 6, expression_statement; 7, if_statement; 8, return_statement; 9, comment:""" Get the sorting name of this category """; 10, boolean_operator; 11, block; 12, attribute; 13, attribute; 14, attribute; 15, return_statement; 16, identifier:self; 17, identifier:name; 18, identifier:self; 19, identifier:_record; 20, attribute; 21, identifier:sort_name; 22, attribute; 23, identifier:self; 24, identifier:_record; 25, attribute; 26, identifier:sort_name; 27, identifier:self; 28, identifier:_record
code: def sort_name(self):
          """ Get the sorting name of this category """
          if self._record and self._record.sort_name:
              return self._record.sort_name
          return self.name