src/Blueprint.php
protected function orderBy($columnname_or_columnarray, $order = 'ASC', $useAliases = false) {
        if (!is_array($columnname_or_columnarray)) {
            $columnname_or_columnarray = [$columnname_or_columnarray];
        }
        $this->query->setOrderBy($columnname_or_columnarray, $order, $useAliases);
        return $this;
    }
protected function orderBy($columnname_or_columnarray, $order = 'ASC', $useAliases = false) {
        if (!is_array($columnname_or_columnarray)) {
            $columnname_or_columnarray = [$columnname_or_columnarray];
        }
        $this->query->setOrderBy($columnname_or_columnarray, $order, $useAliases);
        return $this;
    }
protected function orderBy ( $ columnname_or_columnarray , $ order = 'ASC' , $ useAliases = false ) { if ( ! is_array ( $ columnname_or_columnarray ) ) { $ columnname_or_columnarray = [ $ columnname_or_columnarray ] ; } $ this -> query -> setOrderBy ( $ columnname_or_columnarray , $ order , $ useAliases ) ; return $ this ; }
Sets the order for the query

@param $columnName_or_columnArray - has three possible types:
$column
array($columnone, $columntwo, ...)
array($tableone => array($columnone, $columntwo,  ...), $tabletwo => array(...), ...)
@param $direction - must be one of 'ASC' or 'DESC'
@param $aliases - whether aliases are being used or not
@return $this
Sets the order for the query