test: sort connections for reproducibility

because maps are iterated in random order, we need to somehow stabilize the output of connections, at least for tests' sake.