commit
This commit is contained in:
parent
d0769b2cb3
commit
63acaa509a
@ -101,7 +101,7 @@ func dirList(w http.ResponseWriter, r *http.Request, f http.File, name string) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
sort.Slice(dirs, func(i, j int) bool {
|
sort.Slice(dirs, func(i, j int) bool {
|
||||||
if dirs[i].IsDir() && !dirs[j].IsDir() {
|
if dirs[j].IsDir() && !dirs[i].IsDir() {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return dirs[i].Name() < dirs[j].Name()
|
return dirs[i].Name() < dirs[j].Name()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user