lithium\data\model\Query::order()

public method

Set and get method for the query's order specification.

Parameters

  • array|string|null $order

Returns

array|\lithium\data\Query

Source

	public function order($order = null) {
		if ($order) {
			$this->_config['order'] = $order;
			return $this;
		}
		return $this->_config['order'];
	}