sort connections to a single port