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 {
|
for k := range config.Config.ServeDirs {
|
||||||
keys = append(keys, k)
|
keys = append(keys, k)
|
||||||
}
|
}
|
||||||
sort.Slice(keys, func(i, j int) bool {
|
sort.Strings(keys)
|
||||||
return i < j
|
|
||||||
})
|
|
||||||
|
|
||||||
entries := make([]html.Entry, 0, len(config.Config.ServeDirs))
|
entries := make([]html.Entry, 0, len(config.Config.ServeDirs))
|
||||||
for _, key := range keys {
|
for _, key := range keys {
|
||||||
|
Loading…
Reference in New Issue
Block a user