• 2024-07-24使用stream对集合进行排序
    根据Hash值排序的,无序排序的List<ModuleVo>moduleList=newArrayList();Map<Integer,List<ModuleVo>>collectResult=moduleList.stream().collect(Collectors.groupingBy(ModuleVo::getProjectId));根据time进行升序排序,如下TreeMap<Integer,List<ModuleVo>