List<Object>排序 list.sort(Comparator.comparing(t -> ((ProgramDh) t).getStartTime())); ProgramDh为对象类型,getStartTime()为排序字段