mirror of
https://github.com/jech/galene.git
synced 2024-12-22 15:25:48 +01:00
Sort files in web interface.
This commit is contained in:
parent
31efabbefc
commit
865848c7bc
1 changed files with 5 additions and 0 deletions
|
@ -14,6 +14,7 @@ import (
|
|||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"sort"
|
||||
"strings"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
@ -551,6 +552,10 @@ func serveGroupRecordings(w http.ResponseWriter, r *http.Request, f *os.File, gr
|
|||
return
|
||||
}
|
||||
|
||||
sort.Slice(fis, func(i, j int) bool {
|
||||
return fis[i].Name() < fis[j].Name()
|
||||
})
|
||||
|
||||
w.Header().Set("content-type", "text/html; charset=utf-8")
|
||||
w.Header().Set("cache-control", "no-cache")
|
||||
|
||||
|
|
Loading…
Reference in a new issue