Actionscript implementation of Java.util.Map

I have recently been working on a project where I have needed to place objects into an associative array and then sort the keys to ensure that all the objects are in the correct order. I accomplished this by using a keys Array where I kept all of my associative array keys and then I would sort it whenever I added new mapping entries to my associative array. But it was such a pain to remember to do this every time and it started to bloat my code, so I decided to bite the bullet and implement java.util.TreeMap in Actionscript to solve this problem. Continue reading Actionscript implementation of Java.util.Map