Tino Wildenhain wrote: > thomasvangurp at gmail.com wrote: >> You could use: >> B=list(set(A)).sort() >> Hope that helps. > > That would leave a B with value None :-) > > B=list(sorted(set(A)) > > could work. > sorted() accepts an iterable, eg a set, and returns a list: B = sorted(set(A))