code: def order(self, order):
      '''Adds an Order to this query.
  
      Args:
        see :py:class:`Order <datastore.query.Order>` constructor
  
      Returns self for JS-like method chaining::
  
        query.order('+age').order('-home')
  
      '''
      order = order if isinstance(order, Order) else Order(order)
  
      # ensure order gets attr values the same way the rest of the query does.
      order.object_getattr = self.object_getattr
      self.orders.append(order)
      return self order(self, order):
      '''Adds an Order to this query.
  
      Args:
        see :py:class:`Order <datastore.query.Order>` constructor
  
      Returns self for JS-like method chaining::
  
        query.order('+age').order('-home')
  
      '''
      order = order if isinstance(order, Order) else Order(order)
  
      # ensure order gets attr values the same way the rest of the query does.
      order.object_getattr = self.object_getattr
      self.orders.append(order)
      return self
docs: Adds an Order to this query.
  
      Args:
        see :py:class:`Order <datastore.query.Order>` constructor
  
      Returns self for JS-like method chaining::
  
        query.order('+age').order('-home')