I’m looking for a JavaScript data structure like ListOrderedMap:
http://commons.apache.org/collections/apidocs/org/apache/commons/collections/map/ListOrderedMap.html
E.g. It needs to be able add an object at an index, get the index for an object, and able to look up a object by it’s id.
All the libraries I could find couldn’t add an object at a certain index.
Since Javascript doesn’t have such the data structure, another solution is to use GWT and use the Java source code of ListOrderedMap.java.