Is there any Java SortedHashMap equivalent library in Python? Sorting dict keys in python every time we insert a key in dict doesn't look like an efficient approach.
I went through some reference implementations in python by third-party libraries similar to Java SortedHashMap but they don't look convincing.
Is there any stable and popular python implementation for this? which is already being used in some big opensource projects ?
One reference implementation sorted dict implementation
O(log n).