src/QueryBuilder.php
public function orderBy($column, $order = 'asc')
    {
        $this->order[0] = $column;
        $this->order[1] = strtolower($order) == 'desc' ? 'desc' : 'asc';
        return $this;
    }
public function orderBy($column, $order = 'asc')
    {
        $this->order[0] = $column;
        $this->order[1] = strtolower($order) == 'desc' ? 'desc' : 'asc';
        return $this;
    }
public function orderBy ( $ column , $ order = 'asc' ) { $ this -> order [ 0 ] = $ column ; $ this -> order [ 1 ] = strtolower ( $ order ) == 'desc' ? 'desc' : 'asc' ; return $ this ; }
Set sort column and order

@param  string $column
@param  string $order    Either 'asc' or 'desc'
@return $this
Set sort column and order