code: public static <K, V extends Comparable<V>> Stream<Entry<K, V>>
      sortedStreamByValue(Map<K, V> map) {
          return buildEntryStream(map).sorted(comparing(Entry::getValue));
      }
docs: Sorted stream by value stream.
  
  @param <K> the type parameter
  @param <V> the type parameter
  @param map the map
  @return the stream