src/queries/OrderByTrait.php
protected function applyOrderByParams(Connection $db)
    {
        if ($this->orderBy === null) {
            return;
        }

        // Any other empty value means we should set it
        if (empty($this->orderBy)) {
            $this->applyEmptyOrderByParams($db);
        }

        $this->orderBy($this->orderBy);
    }
protected function applyOrderByParams(Connection $db)
    {
        if ($this->orderBy === null) {
            return;
        }

        // Any other empty value means we should set it
        if (empty($this->orderBy)) {
            $this->applyEmptyOrderByParams($db);
        }

        $this->orderBy($this->orderBy);
    }
protected function applyOrderByParams ( Connection $ db ) { if ( $ this -> orderBy === null ) { return ; } // Any other empty value means we should set it if ( empty ( $ this -> orderBy ) ) { $ this -> applyEmptyOrderByParams ( $ db ) ; } $ this -> orderBy ( $ this -> orderBy ) ; }
Applies the 'fixedOrder' and 'orderBy' params to the query being prepared.

@param Connection|null $db The database connection used to generate the SQL statement.
If this parameter is not given, the `db` application component will be used.
Applies the fixedOrder and orderBy params to the query being prepared .