src/Query/Builder.php
public function setOrderByClause(Clause\OrderBy $objOrderByClause)
    {
        if ($this->objOrderByClause) {
            throw new Caller('You can only have one OrderBy clause in a query.');
        }
        $this->objOrderByClause = $objOrderByClause;
    }
public function setOrderByClause(Clause\OrderBy $objOrderByClause)
    {
        if ($this->objOrderByClause) {
            throw new Caller('You can only have one OrderBy clause in a query.');
        }
        $this->objOrderByClause = $objOrderByClause;
    }
public function setOrderByClause ( Clause \ OrderBy $ objOrderByClause ) { if ( $ this -> objOrderByClause ) { throw new Caller ( 'You can only have one OrderBy clause in a query.' ) ; } $ this -> objOrderByClause = $ objOrderByClause ; }
Sets the one order by clause allowed in a query. Stores it for delayed processing.

@param Clause\OrderBy $objOrderByClause
@throws Caller
Sets the one order by clause allowed in a query . Stores it for delayed processing .