So I have several objects in a HashMap: private HashMap <String,Object> hmap;
what I want to do is sort this objects through a variable of the objects (a double). How should I do this? I think I'm required to use comparators, but I don't know exactly how to work with them. Should I send the objects to an array?