original_string: protected function _sortResult(array &$result, $sort = 'asort')
      {
          // Sorting
          switch ($sort) {
              case 'asort':
                  asort($result);
                  break;
  
              case 'ksort':
                  ksort($result);
                  break;
  
              case 'natsort':
                  natsort($result);
                  break;
  
              default:
                  $sort($result);
          }
      }
code: protected function _sortResult(array &$result, $sort = 'asort')
      {
          // Sorting
          switch ($sort) {
              case 'asort':
                  asort($result);
                  break;
  
              case 'ksort':
                  ksort($result);
                  break;
  
              case 'natsort':
                  natsort($result);
                  break;
  
              default:
                  $sort($result);
          }
      }
code_tokens: protected function _sortResult ( array & $ result , $ sort = 'asort' ) { // Sorting switch ( $ sort ) { case 'asort' : asort ( $ result ) ; break ; case 'ksort' : ksort ( $ result ) ; break ; case 'natsort' : natsort ( $ result ) ; break ; default : $ sort ( $ result ) ; } }
docstring: Sort the array using the specified sort function
  
  @param array $result
  @param strng $sort
docstring_tokens: Sort the array using the specified sort function