An OrderedDict preserves components were inserted:
>>> od = OrderedDict()
>>> od['c'] = 1
>>> od['b'] = 2
>>> od['a'] = 3
>>> od.items()
[('c', 1), ('b', 2), ('a', 3)]
>>> d = {}
>>> d['c'] = 1
>>> d['b'] = 2
>>> d['a'] = 3
>>> d.items()
[('a', 3), ('c', 1), ('b', 2)]
So an OrderedDict doesn't structure the elements for you, it safeguards the orders you give it.
On the off chance that you need to "sort" a dictionary, you most likely need
>>> sorted(d.items())
[('a', 1), ('b', 2), ('c', 3)]
Want to become a expert in python? Join the python course fast!