CHANGED: SortedDict.insert to achieve django 1.7 compatibility