Fix sort of routed networks