Changing from gawk | sort | gawk to perl flattening, then sorting.

There is definitely a bug if the two paired files aren't identical.