1ArrayList<StudentInformation> infos = new ArrayList<StudentInformation>();
2// fill array
3Collections.sort(infos,
4 Comparator.comparingInt(StudentInformation::getBirthYear).reversed());
5
1ArrayList<StudentInformation> infos = new ArrayList<StudentInformation>();
2// fill array
3Collections.sort(infos, (s1, s2) ->
4 Integer.compare(s2.getBirthYear(), s1.getBirthYear()));
5