public function addOrderBy($orderBy)
    {
        if ($orderBy == null)
            return;
        if ($this->_orderBy == null)
        {
            $this->_orderBy = $orderBy;
        }
        elseif (strpos($this->_orderBy, $orderBy) === false)
        {
            $this->_orderBy .= " AND " . $orderBy;
        }
    }
public function addOrderBy($orderBy)
    {
        if ($orderBy == null)
            return;
        if ($this->_orderBy == null)
        {
            $this->_orderBy = $orderBy;
        }
        elseif (strpos($this->_orderBy, $orderBy) === false)
        {
            $this->_orderBy .= " AND " . $orderBy;
        }
    }
public function addOrderBy ( $ orderBy ) { if ( $ orderBy == null ) return ; if ( $ this -> _orderBy == null ) { $ this -> _orderBy = $ orderBy ; } elseif ( strpos ( $ this -> _orderBy , $ orderBy ) === false ) { $ this -> _orderBy .= " AND " . $ orderBy ; } }
Add order by clause

@param string $orderBy SQL ORDER BY clause
@return void
Add order by clause