Code:
d = {\'a\': 0, \'b\': 1, \'c\': 2} l = d.keys() print l
This prints [\'a\', \'c\', \'b\']. I\'m unsure of how the metho
[\'a\', \'c\', \'b\']
Just sort the list when you want to use it.
l = sorted(d.keys())