original_string: protected function set_new_sortorder() {
          $search = array('parentid' => $this->get('parentid'), 'competencyframeworkid' => $this->get('competencyframeworkid'));
          $this->raw_set('sortorder', $this->count_records($search));
      }
code: protected function set_new_sortorder() {
          $search = array('parentid' => $this->get('parentid'), 'competencyframeworkid' => $this->get('competencyframeworkid'));
          $this->raw_set('sortorder', $this->count_records($search));
      }
code_tokens: protected function set_new_sortorder ( ) { $ search = array ( 'parentid' => $ this -> get ( 'parentid' ) , 'competencyframeworkid' => $ this -> get ( 'competencyframeworkid' ) ) ; $ this -> raw_set ( 'sortorder' , $ this -> count_records ( $ search ) ) ; }
docstring: Helper method to set the sortorder.
  
  @return void
docstring_tokens: Helper method to set the sortorder .