def _compare_fields(field1, field2, strict=True):
if strict:<EOL><INDENT>return field1[:<NUM_LIT:4>] == field2[:<NUM_LIT:4>]<EOL><DEDENT>else:<EOL><INDENT>if field1[<NUM_LIT:1>:<NUM_LIT:4>] != field2[<NUM_LIT:1>:<NUM_LIT:4>]:<EOL><INDENT>return False<EOL><DEDENT>else:<EOL><INDENT>return set(field1[<NUM_LIT:0>]) == set(field2[<NUM_LIT:0>])<EOL><DEDENT><DEDENT>
Compare 2 fields.

If strict is True, then the order of the subfield will be taken care of, if
not then the order of the subfields doesn't matter.

:return: True if the field are equivalent, False otherwise.