add relation ports to switch and sorting on analog phones