dictionary example for sorting Example: sort dictionary by key sortedDictionary = sorted(mydictionary.keys())