public function setOrder($column, $dir)
	{
		if (!in_array(strtolower($dir), ['asc', 'desc']))
		{
			throw new InvalidArgumentException('Order direction must be one of ASC or DESC.');
		}

		$this->order[] = [
			'column' => $column,
			'dir'    => $dir
		];
	}
public function setOrder($column, $dir)
	{
		if (!in_array(strtolower($dir), ['asc', 'desc']))
		{
			throw new InvalidArgumentException('Order direction must be one of ASC or DESC.');
		}

		$this->order[] = [
			'column' => $column,
			'dir'    => $dir
		];
	}
public function setOrder ( $ column , $ dir ) { if ( ! in_array ( strtolower ( $ dir ) , [ 'asc' , 'desc' ] ) ) { throw new InvalidArgumentException ( 'Order direction must be one of ASC or DESC.' ) ; } $ this -> order [ ] = [ 'column' => $ column , 'dir' => $ dir ] ; }
Sets an order element on the query

@param   string  $column  The column to which the order by will apply
@param   string  $dir     The direction in which the results will be ordered
@return  void
@since   2.0.0
Sets an order element on the query