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