Skip to content

Commit

Permalink
Return playlists sorted in getPlaylists Subsonic endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Oct 5, 2021
1 parent 058e7e4 commit b6e30cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/subsonic/playlists.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func NewPlaylistsController(ds model.DataStore) *PlaylistsController {

func (c *PlaylistsController) GetPlaylists(w http.ResponseWriter, r *http.Request) (*responses.Subsonic, error) {
ctx := r.Context()
allPls, err := c.ds.Playlist(ctx).GetAll()
allPls, err := c.ds.Playlist(ctx).GetAll(model.QueryOptions{Sort: "name"})
if err != nil {
log.Error(r, err)
return nil, err
Expand Down

0 comments on commit b6e30cd

Please sign in to comment.