test: sort connections for reproducibility

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