Sort test output so it's less brittle