original_string: public function onSetSorting()
      {
          $sortBy = Input::get('sortBy', $this->getSortBy());
          $sortDirection = Input::get('sortDirection', $this->getSortDirection());
          $path = Input::get('path');
  
          $this->setSortBy($sortBy);
          $this->setSortDirection($sortDirection);
          $this->setCurrentFolder($path);
  
          $this->prepareVars();
  
          return [
              '#'.$this->getId('item-list') => $this->makePartial('item-list'),
              '#'.$this->getId('folder-path') => $this->makePartial('folder-path')
          ];
      }
code: public function onSetSorting()
      {
          $sortBy = Input::get('sortBy', $this->getSortBy());
          $sortDirection = Input::get('sortDirection', $this->getSortDirection());
          $path = Input::get('path');
  
          $this->setSortBy($sortBy);
          $this->setSortDirection($sortDirection);
          $this->setCurrentFolder($path);
  
          $this->prepareVars();
  
          return [
              '#'.$this->getId('item-list') => $this->makePartial('item-list'),
              '#'.$this->getId('folder-path') => $this->makePartial('folder-path')
          ];
      }
code_tokens: public function onSetSorting ( ) { $ sortBy = Input :: get ( 'sortBy' , $ this -> getSortBy ( ) ) ; $ sortDirection = Input :: get ( 'sortDirection' , $ this -> getSortDirection ( ) ) ; $ path = Input :: get ( 'path' ) ; $ this -> setSortBy ( $ sortBy ) ; $ this -> setSortDirection ( $ sortDirection ) ; $ this -> setCurrentFolder ( $ path ) ; $ this -> prepareVars ( ) ; return [ '#' . $ this -> getId ( 'item-list' ) => $ this -> makePartial ( 'item-list' ) , '#' . $ this -> getId ( 'folder-path' ) => $ this -> makePartial ( 'folder-path' ) ] ; }
docstring: Set sorting preference AJAX handler
  @return array
docstring_tokens: Set sorting preference AJAX handler