original_string: public function SortCategories() {
        // Check permission
        $this->Permission('Garden.Settings.Manage');
        
        // Set delivery type to true/false
        $TransientKey = GetIncomingValue('TransientKey');
        if (Gdn::Request()->IsPostBack()) {
           $TreeArray = GetValue('TreeArray', $_POST);
           $Saves = $this->CategoryModel->SaveTree($TreeArray);
           $this->SetData('Result', TRUE);
           $this->SetData('Saves', $Saves);
        }
           
        // Renders true/false rather than template  
        $this->Render();
     }
code: public function SortCategories() {
        // Check permission
        $this->Permission('Garden.Settings.Manage');
        
        // Set delivery type to true/false
        $TransientKey = GetIncomingValue('TransientKey');
        if (Gdn::Request()->IsPostBack()) {
           $TreeArray = GetValue('TreeArray', $_POST);
           $Saves = $this->CategoryModel->SaveTree($TreeArray);
           $this->SetData('Result', TRUE);
           $this->SetData('Saves', $Saves);
        }
           
        // Renders true/false rather than template  
        $this->Render();
     }
code_tokens: public function SortCategories ( ) { // Check permission $ this -> Permission ( 'Garden.Settings.Manage' ) ; // Set delivery type to true/false $ TransientKey = GetIncomingValue ( 'TransientKey' ) ; if ( Gdn :: Request ( ) -> IsPostBack ( ) ) { $ TreeArray = GetValue ( 'TreeArray' , $ _POST ) ; $ Saves = $ this -> CategoryModel -> SaveTree ( $ TreeArray ) ; $ this -> SetData ( 'Result' , TRUE ) ; $ this -> SetData ( 'Saves' , $ Saves ) ; } // Renders true/false rather than template   $ this -> Render ( ) ; }
docstring: Sorting display order of categories.
  
  Accessed by ajax so its default is to only output true/false.
  
  @since 2.0.0
  @access public
docstring_tokens: Sorting display order of categories .