Skip to content

Commit

Permalink
More tag sorting.
Browse files Browse the repository at this point in the history
  • Loading branch information
noboomu committed Apr 10, 2018
1 parent 23e81d5 commit 66e47e5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/io/sinistral/proteus/server/swagger/Reader.java
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,14 @@ private Swagger read(Class<?> cls, String parentPath, String parentMethod, boole
}
}
}

List<Tag> swaggerTags = new ArrayList<Tag>(swagger.getTags());

swaggerTags.sort( (a,b) -> {
return a.getName().compareTo(b.getName());
});

swagger.setTags(swaggerTags);

return swagger;
}
Expand Down

0 comments on commit 66e47e5

Please sign in to comment.