For record level, perhaps it would be helpful to not only sort the files by the key, but also rearrange the files so that the unignored fields are first (sorted by name) and then the fields that are to be ignored (assuming you want to keep them) follow the required fields (sorted by name)
Then you could do a cmp of the first fields concatinated for the record level test.