Do you mean a sorted Map, like TreeMap in Java? My implementation is suited for Interactive Brokers API, so sorted map would not work because the API wants to update a specific level in the DOM.