Skip to content

Commit

Permalink
feat(admin): sort transcode profile names
Browse files Browse the repository at this point in the history
fixes #288
  • Loading branch information
sentriz committed Feb 19, 2023
1 parent e0a8c18 commit ae5bc2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/ctrladmin/handlers.go
Expand Up @@ -10,6 +10,7 @@ import (
"log"
"net/http"
"net/url"
"sort"
"strconv"
"time"

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit ae5bc2e

Please sign in to comment.