Illuminate\Database\Query\Builder::enforceOrderBy PHP Метод

enforceOrderBy() защищенный Метод

Throw an exception if the query doesn't have an orderBy clause.
protected enforceOrderBy ( ) : void
Результат void
    protected function enforceOrderBy()
    {
        if (empty($this->orders) && empty($this->unionOrders)) {
            throw new RuntimeException('You must specify an orderBy clause when using this function.');
        }
    }