Skip to content

Commit

Permalink
Sort streams ignoring case (resolves #45)
Browse files Browse the repository at this point in the history
  • Loading branch information
yktoo committed Feb 18, 2022
1 parent cf93973 commit 41dc3c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/player/main-window.go
Original file line number Diff line number Diff line change
Expand Up @@ -2569,7 +2569,9 @@ func (w *MainWindow) updateStreams() {

// Make sure the streams are sorted by name
cfg := config.GetConfig()
sort.Slice(cfg.Streams, func(i, j int) bool { return cfg.Streams[i].Name < cfg.Streams[j].Name })
sort.Slice(cfg.Streams, func(i, j int) bool {
return strings.ToUpper(cfg.Streams[i].Name) < strings.ToUpper(cfg.Streams[j].Name)
})

// Repopulate the streams list
var rowToSelect *gtk.ListBoxRow
Expand Down

0 comments on commit 41dc3c8

Please sign in to comment.