public function orderBy($column, $direction = 'ASC')
    {
        $this->orderBy = $column;
        $this->orderByDirection = $direction;

        return $this;
    }
public function orderBy($column, $direction = 'ASC')
    {
        $this->orderBy = $column;
        $this->orderByDirection = $direction;

        return $this;
    }
public function orderBy ( $ column , $ direction = 'ASC' ) { $ this -> orderBy = $ column ; $ this -> orderByDirection = $ direction ; return $ this ; }
Orders the query

@param        $column
@param string $direction
@return $this
Orders the query