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:
diamondburned 2021-07-06 23:54:54 -07:00 committed by GitHub
parent d882211080
commit 9e16e80f3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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"
)