protected function enforceOrderBy()
    {
        if (empty($this->query->orders) && empty($this->query->unionOrders)) {
            $this->orderBy($this->model->getQualifiedKeyName(), 'asc');
        }
    }
protected function enforceOrderBy()
    {
        if (empty($this->query->orders) && empty($this->query->unionOrders)) {
            $this->orderBy($this->model->getQualifiedKeyName(), 'asc');
        }
    }
protected function enforceOrderBy ( ) { if ( empty ( $ this -> query -> orders ) && empty ( $ this -> query -> unionOrders ) ) { $ this -> orderBy ( $ this -> model -> getQualifiedKeyName ( ) , 'asc' ) ; } }
Add a generic "order by" clause if the query doesn't already have one.

@return void
Add a generic order by clause if the query doesn t already have one .