📅  最后修改于: 2022-03-11 14:52:10.204000             🧑  作者: Mango
ArrayList infos = new ArrayList();
// fill array
Collections.sort(infos, (s1, s2) ->
Integer.compare(s2.getBirthYear(), s1.getBirthYear()));