public function order_by($property, $direction = 'ASC')
	{
		if (is_array($property))
		{
			foreach ($property as $p => $d)
			{
				if (is_int($p))
				{
					is_array($d) ? $this->order_by($d[0], $d[1]) : $this->order_by($d, $direction);
				}
				else
				{
					$this->order_by($p, $d);
				}
			}
			return $this;
		}

		// prefix table alias when not yet prefixed and not a DB expression object
		if ( ! $property instanceof \Fuel\Core\Database_Expression and strpos($property, '.') === false)
		{
			$property = $this->alias.'.'.$property;
		}

		$this->order_by[] = array($property, $direction);

		return $this;
	}
public function order_by($property, $direction = 'ASC')
	{
		if (is_array($property))
		{
			foreach ($property as $p => $d)
			{
				if (is_int($p))
				{
					is_array($d) ? $this->order_by($d[0], $d[1]) : $this->order_by($d, $direction);
				}
				else
				{
					$this->order_by($p, $d);
				}
			}
			return $this;
		}

		// prefix table alias when not yet prefixed and not a DB expression object
		if ( ! $property instanceof \Fuel\Core\Database_Expression and strpos($property, '.') === false)
		{
			$property = $this->alias.'.'.$property;
		}

		$this->order_by[] = array($property, $direction);

		return $this;
	}
public function order_by ( $ property , $ direction = 'ASC' ) { if ( is_array ( $ property ) ) { foreach ( $ property as $ p => $ d ) { if ( is_int ( $ p ) ) { is_array ( $ d ) ? $ this -> order_by ( $ d [ 0 ] , $ d [ 1 ] ) : $ this -> order_by ( $ d , $ direction ) ; } else { $ this -> order_by ( $ p , $ d ) ; } } return $ this ; } // prefix table alias when not yet prefixed and not a DB expression object if ( ! $ property instanceof \ Fuel \ Core \ Database_Expression and strpos ( $ property , '.' ) === false ) { $ property = $ this -> alias . '.' . $ property ; } $ this -> order_by [ ] = array ( $ property , $ direction ) ; return $ this ; }
Set the order_by

@param   string|array  $property
@param   string        $direction

@return  $this
Set the order_by