feat: better sorting
This commit is contained in:
parent
f225038908
commit
ca045e61aa
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user