流排序 ~ soEasy //按照创建时间正序排序 myList=myList.stream().sorted(Comparator.comparing(Student::getCreateTime)).collect(Collectors.toList()); //按照名称倒叙排序 myList=myList.stream().sorted(Comparator.comparing(Student::getName).reversed()).collect(Collectors.toList());