From ae5bc2e1494f983993be7a053c953ca2f8555fae Mon Sep 17 00:00:00 2001 From: sentriz Date: Sun, 19 Feb 2023 17:40:30 +0000 Subject: [PATCH] feat(admin): sort transcode profile names fixes #288 --- server/ctrladmin/handlers.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/ctrladmin/handlers.go b/server/ctrladmin/handlers.go index 3f6d9f5..c357896 100644 --- a/server/ctrladmin/handlers.go +++ b/server/ctrladmin/handlers.go @@ -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)