Addressing  comments on sort to pair and vice versa