sort dict output for tests, no functional change