Or just:
> sorted(my_dict)
Sorting keys like that is also weird. Keys are insertion ordered, utilize that property where you can and avoid needlessly re-sorting.
Now I feel several sorts of ashamed at missing what is kind of a core function.
salutes
Now I feel several sorts of ashamed at missing what is kind of a core function.
salutes