参考文献:https://www.cnblogs.com/east7/p/17180704.html
1.多字段升序
Comparator<类> comparator = Comparator.comparing(类::属性一,Comparator.reverseOrder()).thenComparing(类::属性二);
list=list.stream().sorted(comparator).collect(Collectors.toList());
2.多字段降序
Comparator<UserDTO> comparator = Comparator.comparing(UserDTO::getAge, Comparator.reverseOrder()).thenComparing(UserDTO::getName)
list=list.sorted(comparator).collect(Collectors.toList());