Recently I noticed that when I am converting a list to set the order of elements is changed and is sorted by character.
list
set
Consider this examp
Here's an easy way to do it:
x=[1,2,20,6,210] print sorted(set(x))