original_string: protected function update_instance_ordering($instanceid, $ordering) {
          global $DB;
          $data = new stdClass();
          $data->id = $instanceid;
          $data->ordering = $ordering;
          $data->timemodified = time();
  
          $DB->update_record('tag_instance', $data);
      }
code: protected function update_instance_ordering($instanceid, $ordering) {
          global $DB;
          $data = new stdClass();
          $data->id = $instanceid;
          $data->ordering = $ordering;
          $data->timemodified = time();
  
          $DB->update_record('tag_instance', $data);
      }
code_tokens: protected function update_instance_ordering ( $ instanceid , $ ordering ) { global $ DB ; $ data = new stdClass ( ) ; $ data -> id = $ instanceid ; $ data -> ordering = $ ordering ; $ data -> timemodified = time ( ) ; $ DB -> update_record ( 'tag_instance' , $ data ) ; }
docstring: Updates the ordering on tag instance
  
  @param int $instanceid
  @param int $ordering
docstring_tokens: Updates the ordering on tag instance