例如一个ArrayList里面存有students,要按照student的某个属性(例如序号或者年龄)排序。 Student示例: public class Student implements Serializable { private Integer no; // 学号 private int age; // 年龄 private String name; // 姓名 public Student(Integer no, String name, int age) { this.no = no; this.n…