how to transform a pair of values into a sorted unique array?,sorted(set().union(*input_list))