diff --git a/cmd/server.go b/cmd/server.go index 84a2b25..e37b48f 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -8,6 +8,7 @@ import ( "encoding/json" "fmt" "log" + "sort" "embed" "html/template" @@ -351,6 +352,8 @@ func handleDocumentation(c echo.Context) error { }) } + sort.SliceStable(data, func(i, j int) bool { return data[i].Name < data[j].Name }) + return c.Render(http.StatusOK, "documentation-html", data) }