sort array to get deterministic test output

- 2.24.0