lambda排序list
1.排序list
System.out.println("根据生日降序 (字符串)");
personList = personList.stream().sorted((p1,p2) -> p2.getBirthday().compareTo(p1.getBirthday())).collect(Collectors.toList());
personList.stream().forEach(System.out :: println);
System.out.println("根据年龄升序 (数字)");
personList = personList.stream().sorted((p1,p2) -> p1.getAge().compareTo(p2.getAge())).collect(Collectors.toList());
personList.stream().forEach(System.out :: println);