Sorting test output?

I keep getting bogus test diffs for a number of tests because of line
order changes. I'm wondering if we could just generally sort all
output before diffing. Does anybody see a problem with that?


It seems alright to me. Do you have any clue what could be causing the order changes in the lines? It seems like we have some code paths that are still somewhat non-deterministic.