I have a bunch of .properties files structured in sub-directories inside a parent directory. I.e, the structure is this:
MainDir
|
Dir1 Dir2 Dir3
| | |
files files files
In each Dir, there are a bunch of .properties files, one for each locale (e.g: translation_en.properties)
I want to compare the content of these files to a git repository, which has the same exact structure. The problem is that the keys inside the files in the git got disordered, and thus comparing the two (using FC, Comp or http://winmerge.org/) results in many differences. I don't care about the order of the key:value in the .properties files, only whether the key:value pairs are identical. How can I check this? I thought about ordering both resources by the same logic, and then running a compare. How can this be achieved?