src/mako/database/query/Query.php
public function orderBy($columns, string $order = 'ASC')
	{
		$this->orderings[] =
		[
			'column' => is_array($columns) ? $columns : [$columns],
			'order'  => ($order === 'ASC' || $order === 'asc') ? 'ASC' : 'DESC',
		];

		return $this;
	}
public function orderBy($columns, string $order = 'ASC')
	{
		$this->orderings[] =
		[
			'column' => is_array($columns) ? $columns : [$columns],
			'order'  => ($order === 'ASC' || $order === 'asc') ? 'ASC' : 'DESC',
		];

		return $this;
	}
public function orderBy ( $ columns , string $ order = 'ASC' ) { $ this -> orderings [ ] = [ 'column' => is_array ( $ columns ) ? $ columns : [ $ columns ] , 'order' => ( $ order === 'ASC' || $ order === 'asc' ) ? 'ASC' : 'DESC' , ] ; return $ this ; }
Adds a ORDER BY clause.

@param  string|array $columns Column name or array of column names
@param  string       $order   Sorting order
@return $this
Adds a ORDER BY clause .