fork download
  1. a = [1, 2], [2, 1], [3, 2, 2], [2], [2, 1, 3], [2, 2, 3]
  2. a = [sorted(i) for i in a]
  3.  
  4. print [list(i) for i in set(map(tuple, a))]
  5.  
Success #stdin #stdout 0.02s 9016KB
stdin
Standard input is empty
stdout
[[1, 2], [2], [2, 2, 3], [1, 2, 3]]