src/ORM/Queries/SQLSelect.php
public function reverseOrderBy()
    {
        $order = $this->getOrderBy();
        $this->orderby = array();

        foreach ($order as $clause => $dir) {
            $dir = (strtoupper($dir) == 'DESC') ? 'ASC' : 'DESC';
            $this->addOrderBy($clause, $dir);
        }

        return $this;
    }
public function reverseOrderBy()
    {
        $order = $this->getOrderBy();
        $this->orderby = array();

        foreach ($order as $clause => $dir) {
            $dir = (strtoupper($dir) == 'DESC') ? 'ASC' : 'DESC';
            $this->addOrderBy($clause, $dir);
        }

        return $this;
    }
public function reverseOrderBy ( ) { $ order = $ this -> getOrderBy ( ) ; $ this -> orderby = array ( ) ; foreach ( $ order as $ clause => $ dir ) { $ dir = ( strtoupper ( $ dir ) == 'DESC' ) ? 'ASC' : 'DESC' ; $ this -> addOrderBy ( $ clause , $ dir ) ; } return $ this ; }
Reverses the order by clause by replacing ASC or DESC references in the
current order by with it's corollary.

@return $this Self reference
Reverses the order by clause by replacing ASC or DESC references in the current order by with it s corollary .