Dictionaries sorted by key or by comparison function. For Python 2 or Python 3.