diff --git a/src/main/java/io/sinistral/proteus/server/swagger/Reader.java b/src/main/java/io/sinistral/proteus/server/swagger/Reader.java index ddb3871..f68d15b 100644 --- a/src/main/java/io/sinistral/proteus/server/swagger/Reader.java +++ b/src/main/java/io/sinistral/proteus/server/swagger/Reader.java @@ -457,6 +457,14 @@ private Swagger read(Class cls, String parentPath, String parentMethod, boole } } } + + List swaggerTags = new ArrayList(swagger.getTags()); + + swaggerTags.sort( (a,b) -> { + return a.getName().compareTo(b.getName()); + }); + + swagger.setTags(swaggerTags); return swagger; }