https://mysteryweevil.medium.com/value-based-sorting-a-python-guide-to-sorting-dictionaries-by-values-290f3d12b5fd