Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

sort stream by key java

.sorted(Map.Entry.<String, Long> comparingByValue().reversed().thenComparing(Map.Entry.comparingByKey()))
 
PREVIOUS NEXT
Tagged: #sort #stream #key #java
ADD COMMENT
Topic
Name
7+7 =