Merge pull request 'Trier data []Buckets avant de render /documentation' (#104) from fix/sort-types-documents into main

Reviewed-on: #104
This commit is contained in:
Victor Lacasse-Beaudoin 2023-08-16 13:17:48 -05:00
commit 823b294ed4

View file

@ -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)
}