links are sorted