I have map Map countByType and I want to have a list which has sorted (min to max) keys by their corresponding values. My try is:
Map countByType
Here is the simple solution with StreamEx
EntryStream.of(countByType).sortedBy(e -> e.getValue()).keys().toList();