feat(admin): sort transcode profile names

fixes #288
This commit is contained in:
sentriz
2023-02-19 17:40:30 +00:00
parent e0a8c18b8d
commit ae5bc2e149

View File

@@ -10,6 +10,7 @@ import (
"log"
"net/http"
"net/url"
"sort"
"strconv"
"time"
@@ -77,6 +78,7 @@ func (c *Controller) ServeHome(r *http.Request) *Response {
for profile := range transcode.UserProfiles {
data.TranscodeProfiles = append(data.TranscodeProfiles, profile)
}
sort.Strings(data.TranscodeProfiles)
// podcasts box
c.DB.Find(&data.Podcasts)