https://kotlinlang.org logo
#announcements
Title
# announcements
m

Mark Buikema

09/09/2019, 10:16 AM
when using
groupBy
, is there any nice and easy way to sort the items within the groups?
g

gildor

09/09/2019, 10:20 AM
only by sorting each list ins value of the map, you can use Map.mapValues for this
Or just write own implementation that sorts list, it’s just a few lines, see source in stdlib
3 Views