pair-ids now sorts the output list of pairs in the obvious alpha order