Dose any one here know how to change the order of the order dictionary variables in python . I have tried to change the order of the key list but it didn't change the order of the dictionary .
For example i want to change the order of d
to ['e','a','b','c','d'] instead of ['a','b','c','d','e']
d = collections.OrderedDict()
d['a'] = 'A'
d['b'] = 'B'
d['c'] = 'C'
d['d'] = 'D'
d['e'] = 'E'