sorting links by score