Source Code:
(back to article)
original_dict = {'c': 3, 'a': 1, 'b': 2} for key, value in sorted(original_dict.items()): print(key, value)
Result:
Report an issue