I have a list that I need to custom sort and then convert to a map with its Id vs. name map.
Here is my code:
Map map = new Link
Use toMap() of java.util.stream.Collectors
toMap()
java.util.stream.Collectors