sorted the adjacent ASes