• + 0 comments

    It sorts in decreasing order the output we get from Collections.sort(studentList, Comparator.comparing(Student :: getCgpa) .As you might see ' comparing ' does bydefault increasing order sorting