Trying to fix non-deterministic nature of tests...

... by sorting output.