I'm working on a project where i need to store key/values having multiple duplicate keys. Though there are many new implementations like apache commons and guava, they are mostly based on single key with multiple values as like below.
Map<Integer, List<String>>
My need is to have duplicate keys along with a capability to sort the map by values rather than by keys. It means, a map data structure which is completely based on position and sorting by values.
Please do let me know if there is any existing implementations or any ideas to implement the same.