diff --git a/sop-website/src/main/java/com/gitee/sop/websiteserver/manager/SwaggerDocParser.java b/sop-website/src/main/java/com/gitee/sop/websiteserver/manager/SwaggerDocParser.java index ff845789..af3b419a 100644 --- a/sop-website/src/main/java/com/gitee/sop/websiteserver/manager/SwaggerDocParser.java +++ b/sop-website/src/main/java/com/gitee/sop/websiteserver/manager/SwaggerDocParser.java @@ -61,6 +61,8 @@ public class SwaggerDocParser implements DocParser { } } + docItems.sort(Comparator.comparing(DocItem::getNameVersion)); + List docModuleList = docItems.stream() .collect(Collectors.groupingBy(DocItem::getModule)) .entrySet()