Commit 865848c7 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Sort files in web interface.

parent 31efabbe
...@@ -14,6 +14,7 @@ import ( ...@@ -14,6 +14,7 @@ import (
"os" "os"
"path" "path"
"path/filepath" "path/filepath"
"sort"
"strings" "strings"
"sync/atomic" "sync/atomic"
"time" "time"
...@@ -551,6 +552,10 @@ func serveGroupRecordings(w http.ResponseWriter, r *http.Request, f *os.File, gr ...@@ -551,6 +552,10 @@ func serveGroupRecordings(w http.ResponseWriter, r *http.Request, f *os.File, gr
return 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("content-type", "text/html; charset=utf-8")
w.Header().Set("cache-control", "no-cache") w.Header().Set("cache-control", "no-cache")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment