don't forget to remove the default sort too
This commit is contained in:
parent
a9b5198123
commit
d6035aa01b
|
@ -98,8 +98,6 @@ func dirList(w http.ResponseWriter, r *http.Request, f http.File) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sort.Slice(dirs, func(i, j int) bool { return dirs[i].Name() < dirs[j].Name() })
|
|
||||||
|
|
||||||
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
||||||
|
|
||||||
fmt.Fprintf(w, "<table border='0'>%s\n", tableheader)
|
fmt.Fprintf(w, "<table border='0'>%s\n", tableheader)
|
||||||
|
|
Loading…
Reference in New Issue