When looking through the collections, both the documentation and the source, I couldn't find one that would let me maintain a sorted collection of objects based off of a property of the object, but also retrieve an object by it's key. For instance, let's say we want to keep a list of People sorted by their age. I should be able to have the backing store keep a list of People in ascending age order, but also be able to retrieve a person by his/her name. The closest collection is probably the SortedMap, but again, both retrieval and sorting are stuck using the key. Am I missing something, or does that functionality not exist in this package?
When looking through the collections, both the documentation and the source, I couldn't find one that would let me maintain a sorted collection of objects based off of a property of the object, but also retrieve an object by it's key. For instance, let's say we want to keep a list of People sorted by their age. I should be able to have the backing store keep a list of People in ascending age order, but also be able to retrieve a person by his/her name. The closest collection is probably the SortedMap, but again, both retrieval and sorting are stuck using the key. Am I missing something, or does that functionality not exist in this package?