/** * Appends the list of expressions that will be used when sorting the resulting rows. * * Multiple arguments implementing OrderBy are accepted. * * @param OrderBy ... * @return SelectQuery itself */ function orderBy(OrderBy $expression) { $expressions = func_get_args(); foreach ($expressions as $expression) { $this->order->append($expression); } return $this; }
/** * Appends the expression that will be used when sorting the resulting rows. * * @param OrderBy * @return SelectQuery itself */ function addOrderBy(OrderBy $expression) { $this->order->append($expression); return $this; }