code: public static <K, V extends Comparable<V>> Map<K, V>
      sortByValue(Map<K, V> map) {
          return sort(map, comparing(map::get));
      }
docs: Sort by value map.
  
  @param <K> the type parameter
  @param <V> the type parameter
  @param map the map
  @return the map