UDT diff / compare

Does anyone have a working method for comparing individual UDT json or xml files? We have many different sites that we are trying to keep unified, and it would be very useful to be able to use a compare tool to see if changes have been made to a UDT. Unfortunately when exporting, the order doesn’t seem to ever be the same, so using a diff tool isn’t an option right now.

I could try to make something that would order the file, but that’s introducing another step where a mistake could easily be made. Does anyone have a way to do this reliably?