def sort_unique(alist):
 alist.sort()
 out = list()
 for i in alist:
  if (i not in out):
   out.append(i)
 return out

def sort_unique ( alist ) : alist . sort ( ) out = list ( ) for i in alist : if ( i not in out ) : out . append ( i ) return out
sorts and de-dupes a list args: list: a list returns: list: a sorted de-duped list .