diff --git a/cmd/version.go b/cmd/version.go index 6829397..f37429d 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -10,7 +10,7 @@ import ( "github.com/spf13/cobra" ) -var Version = "0.41.0" +var Version = "0.41.1" func init() { rootCmd.AddCommand(versionCmd) diff --git a/cmd/web.go b/cmd/web.go index 4e10e9f..e8431cb 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -653,7 +653,13 @@ func serveIndexHandler(args []string, index *Index) http.HandlerFunc { startTime := time.Now() - response, err := json.MarshalIndent(index.Index(), "", " ") + indexDump := index.Index() + + sort.SliceStable(indexDump, func(p, q int) bool { + return indexDump[p] < indexDump[q] + }) + + response, err := json.MarshalIndent(indexDump, "", " ") if err != nil { return }