test: sort connections for reproducibility