original_string: protected function sortOrderString()
      {
          $sortOrderComponents = [];
          foreach ($this->getSortOrder() as $sortCriterion) {
              $sortOrderComponents[] = $sortCriterion['fieldName'] . ':'
                      . (($sortCriterion['direction'] === 'descending') ? '0' : '1');
          }
          $sortOrderString = implode(',', $sortOrderComponents);
  
          return $sortOrderString;
      }
code: protected function sortOrderString()
      {
          $sortOrderComponents = [];
          foreach ($this->getSortOrder() as $sortCriterion) {
              $sortOrderComponents[] = $sortCriterion['fieldName'] . ':'
                      . (($sortCriterion['direction'] === 'descending') ? '0' : '1');
          }
          $sortOrderString = implode(',', $sortOrderComponents);
  
          return $sortOrderString;
      }
code_tokens: protected function sortOrderString ( ) { $ sortOrderComponents = [ ] ; foreach ( $ this -> getSortOrder ( ) as $ sortCriterion ) { $ sortOrderComponents [ ] = $ sortCriterion [ 'fieldName' ] . ':' . ( ( $ sortCriterion [ 'direction' ] === 'descending' ) ? '0' : '1' ) ; } $ sortOrderString = implode ( ',' , $ sortOrderComponents ) ; return $ sortOrderString ; }
docstring: Returns a string encoding the sort order formatted for use by pazpar2.
  
  @return string
docstring_tokens: Returns a string encoding the sort order formatted for use by pazpar2 .