src/ORM/Queries/SQLSelect.php
public function setOrderBy($clauses = null, $direction = null)
    {
        $this->orderby = array();
        return $this->addOrderBy($clauses, $direction);
    }
public function setOrderBy($clauses = null, $direction = null)
    {
        $this->orderby = array();
        return $this->addOrderBy($clauses, $direction);
    }
public function setOrderBy ( $ clauses = null , $ direction = null ) { $ this -> orderby = array ( ) ; return $ this -> addOrderBy ( $ clauses , $ direction ) ; }
Set ORDER BY clause either as SQL snippet or in array format.

@example $sql->setOrderBy("Column");
@example $sql->setOrderBy("Column DESC");
@example $sql->setOrderBy("Column DESC, ColumnTwo ASC");
@example $sql->setOrderBy("Column", "DESC");
@example $sql->setOrderBy(array("Column" => "ASC", "ColumnTwo" => "DESC"));

@param string|array $clauses Clauses to add (escaped SQL statement)
@param string $direction Sort direction, ASC or DESC

@return $this Self reference
Set ORDER BY clause either as SQL snippet or in array format .