def insert(self, index, key, value):
        if key in self.keyOrder:
            n = self.keyOrder.index(key)
            del self.keyOrder[n]
            if n < index:
                index -= 1
        self.keyOrder.insert(index, key)
        super(OrderedDict, self).__setitem__(key, value)
Inserts the key, value pair before the item with the given index.
dataset/ETHPy150Open dragondjf/QMarkdowner/markdown/odict.py/OrderedDict.insert