feat: better sorting

This commit is contained in:
Louis Dalibard 2024-04-28 12:16:49 +02:00
parent f225038908
commit ca045e61aa
2 changed files with 1 additions and 3 deletions

BIN
leech

Binary file not shown.

View File

@ -49,9 +49,7 @@ func HandleList(c *fiber.Ctx) error {
for k := range config.Config.ServeDirs {
keys = append(keys, k)
}
sort.Slice(keys, func(i, j int) bool {
return i < j
})
sort.Strings(keys)
entries := make([]html.Entry, 0, len(config.Config.ServeDirs))
for _, key := range keys {