HTML debug sort is now case-insensitive

This commit is contained in:
Seednode 2023-06-19 14:34:30 -05:00
parent e834547867
commit 780bed087d
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import (
) )
const ( const (
Version string = "0.52.0" Version string = "0.52.1"
) )
var ( var (

View File

@ -665,7 +665,7 @@ func serveDebugHtml(args []string, index *Index) httprouter.Handle {
fileCount := strconv.Itoa(len(indexDump)) fileCount := strconv.Itoa(len(indexDump))
sort.SliceStable(indexDump, func(p, q int) bool { sort.SliceStable(indexDump, func(p, q int) bool {
return indexDump[p] < indexDump[q] return strings.ToLower(indexDump[p]) < strings.ToLower(indexDump[q])
}) })
var htmlBody strings.Builder var htmlBody strings.Builder