original_string: protected function _applySort($url)
      {
          if (!$this->_sortEnabled) {
              return $url;
          }
  
          if (!empty($this->request->getQuery('s'))) {
              $url['?']['s'] = $this->request->getQuery('s');
          }
  
          if (!empty($this->request->getQuery('d'))) {
              $url['?']['d'] = $this->request->getQuery('d');
          }
  
          return $url;
      }
code: protected function _applySort($url)
      {
          if (!$this->_sortEnabled) {
              return $url;
          }
  
          if (!empty($this->request->getQuery('s'))) {
              $url['?']['s'] = $this->request->getQuery('s');
          }
  
          if (!empty($this->request->getQuery('d'))) {
              $url['?']['d'] = $this->request->getQuery('d');
          }
  
          return $url;
      }
code_tokens: protected function _applySort ( $ url ) { if ( ! $ this -> _sortEnabled ) { return $ url ; } if ( ! empty ( $ this -> request -> getQuery ( 's' ) ) ) { $ url [ '?' ] [ 's' ] = $ this -> request -> getQuery ( 's' ) ; } if ( ! empty ( $ this -> request -> getQuery ( 'd' ) ) ) { $ url [ '?' ] [ 'd' ] = $ this -> request -> getQuery ( 'd' ) ; } return $ url ; }
docstring: Pass sort options through to the filtered url.
  
  @param array $url
  @return array modified url array
docstring_tokens: Pass sort options through to the filtered url .