Strategy 1: Just one apparent tactic is to write down our personal sort() operate working with one of the typical algorithms. This Answer requires rewriting The full sorting code for various standards like Roll No. and Title. In this approach, we're going to use inter-conversion constructor in between HashMap & https://java-8-lambda-stream-sort32587.rimmablog.com/14049177/indicators-on-java-8-lambda-stream-sorted-you-should-know