I’d like to reorder keys in Python odict (not 2.7 OrderedDict).
https://github.com/bluedynamics/odict
How I could implement moveAfter() and moveBefore() functions, so I could shuffle the keys around? Do any similar helper functions already exist through some Python magic?
The reordering behavior is implemented here:
https://github.com/bluedynamics/node/blob/master/src/node/behaviors/order.py#L11
The business logic acts on the underlying odict data structure.
It has been planned for a while to move aquivalent code upstream to odict.