So, several of us informed Philip that list.sort() is in place and returns nothing. How do i accomplish: for key in dict.keys().sort(): print "%s -> %s" % (key, dict[key]) ??? I know I can do: list = dict.keys() list.sort() ..... but it is just plain annoying.