original_string: protected function applySort()
      {
          $sort = $this->getActualSort();
  
          if ( ! $sort) return $this;
  
          $criteria = $this->getModelSortCriteria();
  
          if ( ! $criteria) return $this;
  
          $this->getModelRepository()->pushCriteria($criteria, CriteriaKey::ORDER);
  
          return $this;
      }
code: protected function applySort()
      {
          $sort = $this->getActualSort();
  
          if ( ! $sort) return $this;
  
          $criteria = $this->getModelSortCriteria();
  
          if ( ! $criteria) return $this;
  
          $this->getModelRepository()->pushCriteria($criteria, CriteriaKey::ORDER);
  
          return $this;
      }
code_tokens: protected function applySort ( ) { $ sort = $ this -> getActualSort ( ) ; if ( ! $ sort ) return $ this ; $ criteria = $ this -> getModelSortCriteria ( ) ; if ( ! $ criteria ) return $ this ; $ this -> getModelRepository ( ) -> pushCriteria ( $ criteria , CriteriaKey :: ORDER ) ; return $ this ; }
docstring: Applies active sorting to model repository.
  
  @return $this
docstring_tokens: Applies active sorting to model repository .