def record_move_subfield(rec, tag, subfield_position, new_subfield_position,<EOL>field_position_global=None,<EOL>field_position_local=None):
subfields = record_get_subfields(<EOL>rec,<EOL>tag,<EOL>field_position_global=field_position_global,<EOL>field_position_local=field_position_local)<EOL>try:<EOL><INDENT>subfield = subfields.pop(subfield_position)<EOL>subfields.insert(new_subfield_position, subfield)<EOL><DEDENT>except IndexError:<EOL><INDENT>raise InvenioBibRecordFieldError(<EOL>"<STR_LIT>" % subfield_position)<EOL><DEDENT>
Move subfield at specified position.

    Sspecify the subfield by tag, field number and subfield position to new
    subfield position.