I want to sort list of lists in ascending order and avoid duplicates.
Example Input:
p = [[\'1\', \'2\'], [\'2\', \'3\'], [\'4\', \'5\'], [\'6\', \'7\'], [