sort arrays so the test output is deterministic

- 2.24.1