In [2]:
import hashlib
In [9]:
hashes = [hashlib.md5(bytes(str(i),"utf-8")).hexdigest() for i in range(100000)]
In [10]:
sorted_hashes = sorted(hashes)
In [11]:
%timeit sorted_hashes
In [ ]: