This commit is contained in:
Timofey.Kovalev 2018-09-24 13:01:52 +03:00
parent d0769b2cb3
commit 63acaa509a

View File

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