SQLGlobal::orderBy PHP Метод

orderBy() публичный Метод

Order by
public orderBy ( )
    public function orderBy()
    {
        $order = func_get_args();
        if (!$this->validateParamater($order)) {
            return $this;
        }
        foreach ($order as $key => $value) {
            $ret = $value;
            if (!$this->validateParamater($ret)) {
                continue;
            }
            if (!is_array($ret)) {
                $ret = array($value => '');
            }
            $this->orderBy = array_merge_recursive($this->orderBy, $ret);
        }
        return $this;
    }