From 780bed087d7186b116b13db7c73e69609ee1149b Mon Sep 17 00:00:00 2001 From: Seednode Date: Mon, 19 Jun 2023 14:34:30 -0500 Subject: [PATCH] HTML debug sort is now case-insensitive --- cmd/root.go | 2 +- cmd/web.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 2aede75..9cdf620 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -11,7 +11,7 @@ import ( ) const ( - Version string = "0.52.0" + Version string = "0.52.1" ) var ( diff --git a/cmd/web.go b/cmd/web.go index 47396ba..a475b1f 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -665,7 +665,7 @@ func serveDebugHtml(args []string, index *Index) httprouter.Handle { fileCount := strconv.Itoa(len(indexDump)) 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