diff options
Diffstat (limited to 'wk7/lect')
-rw-r--r-- | wk7/lect/favorites.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wk7/lect/favorites.py b/wk7/lect/favorites.py index 446a92e..62ce6c6 100644 --- a/wk7/lect/favorites.py +++ b/wk7/lect/favorites.py @@ -16,6 +16,6 @@ with open("favorites.csv") as file: else: counts[favorite] = 1 -for favorite in counts: +for favorite in sorted(counts, key=counts.get): print(favorite, ':', counts[favorite]) |