diff --git a/site/site.go b/site/site.go index 2cc1b34..fc3e323 100644 --- a/site/site.go +++ b/site/site.go @@ -7,6 +7,7 @@ import ( "io/ioutil" "os" "path/filepath" + "sort" "strings" "text/template" @@ -36,6 +37,7 @@ func (m *metadata) getSubpages() []Subpage { ret = append(ret, subpage) } } + sort.Slice(ret, func(i, j int) bool { return strings.ToUpper(ret[i].Title) < strings.ToUpper(ret[j].Title) }) return ret }