src/Neevo/BaseStatement.php
public function order($rule, $order = null){
		if($this->validateConditions())
			return $this;

		$this->resetState();

		if(is_array($rule) || $rule instanceof Traversable){
			foreach($rule as $key => $val){
				$this->order($key, $val);
			}
			return $this;
		}
		$this->sorting[] = array($rule, $order);

		return $this;
	}
public function order($rule, $order = null){
		if($this->validateConditions())
			return $this;

		$this->resetState();

		if(is_array($rule) || $rule instanceof Traversable){
			foreach($rule as $key => $val){
				$this->order($key, $val);
			}
			return $this;
		}
		$this->sorting[] = array($rule, $order);

		return $this;
	}
public function order ( $ rule , $ order = null ) { if ( $ this -> validateConditions ( ) ) return $ this ; $ this -> resetState ( ) ; if ( is_array ( $ rule ) || $ rule instanceof Traversable ) { foreach ( $ rule as $ key => $ val ) { $ this -> order ( $ key , $ val ) ; } return $ this ; } $ this -> sorting [ ] = array ( $ rule , $ order ) ; return $ this ; }
Defines order. More calls append rules.
@param string|array|Traversable $rule
@param string $order Use constants - Manager::ASC, Manager::DESC
@return BaseStatement fluent interface
Defines order . More calls append rules .