src/mako/database/query/compilers/Compiler.php
protected function orderings(array $orderings): string
	{
		if(empty($orderings))
		{
			return '';
		}

		$sql = [];

		foreach($orderings as $order)
		{
			$sql[] = $this->columns($order['column']) . ' ' . $order['order'];
		}

		return ' ORDER BY ' . implode(', ', $sql);
	}
protected function orderings(array $orderings): string
	{
		if(empty($orderings))
		{
			return '';
		}

		$sql = [];

		foreach($orderings as $order)
		{
			$sql[] = $this->columns($order['column']) . ' ' . $order['order'];
		}

		return ' ORDER BY ' . implode(', ', $sql);
	}
protected function orderings ( array $ orderings ) : string { if ( empty ( $ orderings ) ) { return '' ; } $ sql = [ ] ; foreach ( $ orderings as $ order ) { $ sql [ ] = $ this -> columns ( $ order [ 'column' ] ) . ' ' . $ order [ 'order' ] ; } return ' ORDER BY ' . implode ( ', ' , $ sql ) ; }
Compiles ORDER BY clauses.

@param  array  $orderings Array of order by clauses
@return string
Compiles ORDER BY clauses .