nodes: 0, module; 1, function_definition; 2, function_name:order; 3, parameters; 4, block; 5, identifier:self; 6, identifier:value; 7, expression_statement; 8, if_statement; 9, expression_statement; 10, comment:"""Set the fields used to sort query results.
  
          Sort fields will be applied in the order specified.
  
          :type value: str or sequence of strings
          :param value: Each value is a string giving the name of the
                        property on which to sort, optionally preceded by a
                        hyphen (-) to specify descending order.
                        Omitting the hyphen implies ascending order.
          """; 11, call; 12, block; 13, assignment; 14, identifier:isinstance; 15, argument_list; 16, expression_statement; 17, subscript; 18, identifier:value; 19, identifier:value; 20, identifier:str; 21, assignment; 22, attribute; 23, slice; 24, identifier:value; 25, list; 26, identifier:self; 27, identifier:_order; 28, identifier:value
code: def order(self, value):
          """Set the fields used to sort query results.
  
          Sort fields will be applied in the order specified.
  
          :type value: str or sequence of strings
          :param value: Each value is a string giving the name of the
                        property on which to sort, optionally preceded by a
                        hyphen (-) to specify descending order.
                        Omitting the hyphen implies ascending order.
          """
          if isinstance(value, str):
              value = [value]
          self._order[:] = value