mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-20 22:52:58 -05:00
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
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ func (l byTime) Less(i, j int) bool { return l.Items[i].ModTime.Before(l.Items[j
|
||||||
|
|
||||||
const (
|
const (
|
||||||
sortByName = "name"
|
sortByName = "name"
|
||||||
sortByNameDirFirst = "name_dir_first"
|
sortByNameDirFirst = "namedirfirst"
|
||||||
sortBySize = "size"
|
sortBySize = "size"
|
||||||
sortByTime = "time"
|
sortByTime = "time"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue