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