Guarantee the order of ports in topology