phprs\ezsql\impls\OrderByImpl::orderBy PHP Method

orderBy() public method

public orderBy ( $context, $column, $order = null )
    public function orderBy($context, $column, $order = null)
    {
        if ($this->first) {
            $this->first = false;
            $context->appendSql("ORDER BY {$column}");
        } else {
            $context->appendSql(",{$column}", false);
        }
        if ($order) {
            $context->appendSql($order);
        }
        return $this;
    }