original_string: public function set_sorting($sort, $asc = true, $split = true) {
          $this->sort = (bool)$sort;
          $this->sortasc = (bool)$asc;
          $this->sortsplit = (bool)$split;
      }
code: public function set_sorting($sort, $asc = true, $split = true) {
          $this->sort = (bool)$sort;
          $this->sortasc = (bool)$asc;
          $this->sortsplit = (bool)$split;
      }
code_tokens: public function set_sorting ( $ sort , $ asc = true , $ split = true ) { $ this -> sort = ( bool ) $ sort ; $ this -> sortasc = ( bool ) $ asc ; $ this -> sortsplit = ( bool ) $ split ; }
docstring: Sets sorting on this category.
  
  Please note this function doesn't actually do the sorting.
  It can be called anytime.
  Sorting occurs when the user calls get_children.
  Code using the children array directly won't see the sorted results.
  
  @param bool $sort If set to true children will be sorted, if false they won't be.
  @param bool $asc If true sorting will be ascending, otherwise descending.
  @param bool $split If true we sort pages and sub categories separately.
docstring_tokens: Sets sorting on this category .