I have learned that, in Java, TreeMap<K,V> is a SortedMap that sorts according to its keys or by using a Comparator<? extends K> of the keys.
Are there some other SortedMap like TreeMap<K,V> but can sort using a Comparator<? extends V> of the values instead of the keys?
