I need to do the following:
1. put some objects into a collection
2. sort from min to max (with or without a key)
3. get the object with the min value (something like "peek")
4. modify the object without removing it
Key used will be a property of the object.
I don't know the keys or values in advance so I need to be able to use an index to get the top object.
Which is the best collection to use?
I'm looking at the following: