On Tue, Sep 24, 2013 at 7:27 AM, Ram Rachum <ram.rachum at gmail.com> wrote: > I think that your mistake is defining OrderedDict as a dict sorting by > insertion order. That's the definition straight out of the documentation. "An OrderedDict is a dict that remembers the order that keys were first inserted."