Sort Dictionaries by Key, or Value, in Python – Asc, Desc
Python includes a built-in function, the sorted() function, that we can utilize for efficiently sorting dictionaries by keys or values(in Asc or Desc order).
https://codeparttime.com/sort-dictionaries-by-key-or-value-in-python/