Published: July 17, 2017
map.entrySet().stream() .sorted(Map.Entry.comparingByValue()) .forEach(entry -> ... );