list根据对象中年龄升序排序 2020-01-09 本文已影响0人 阔阔飞翔 students.sort((x, y) -> Integer.compare(x.getAge(), y.getAge()));