sort outbound/inbound links