java 集合根据某一属性进行排序

Collections.sort('传入你需要排序的集合;列如(List<TeacherAtten>)', new Comparator<TeacherAtten>() {
});