Real Python
Sorting Dictionaries in Python: Keys, Values, and More
In this video course, you'll learn how to sort Python dictionaries. By the end, you'll be able to sort by key, value, or even nested attributes. But you won't stop there---you'll also measure the performance of variations when sorting and compare different key-value data structures.