Creating a function which takes a dictionary as a parameter and uses nested for loops cycles through and prints the dictionary's keys, changes the key's value from a tuple to a list, sorts the list, then print the list values before the next iteration.
(Recorded with http://screencast-o-matic.com)