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);
    }
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);
    }
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 ) ; }
Updates the ordering on tag instance

@param int $instanceid
@param int $ordering
Updates the ordering on tag instance