user at domain.invalid wrote: > How about creating a sorted dictionary then? That is, add elements > to the dictionary in the order they are supposed to be in. > Is that not possible? Python dictionaries are unordered. The best you can probably do is to keep a separate list of sorted keys.