mirror of https://github.com/caddyserver/caddy.git
fileserver: Fix browse name_dir_first sorting (#4218)
This commit fixes the `sortByNameDirFirst` variable inside fileserver to match what browse's default template has. Co-authored-by: Francis Lavoie <lavofr@gmail.com>
This commit is contained in:
parent
d882211080
commit
9e16e80f3c
|
@ -264,7 +264,7 @@ func (l byTime) Less(i, j int) bool { return l.Items[i].ModTime.Before(l.Items[j
|
|||
|
||||
const (
|
||||
sortByName = "name"
|
||||
sortByNameDirFirst = "name_dir_first"
|
||||
sortByNameDirFirst = "namedirfirst"
|
||||
sortBySize = "size"
|
||||
sortByTime = "time"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue