From b6e30cd01f2c5621229191c0e6f2ba3eda40ec7c Mon Sep 17 00:00:00 2001 From: Deluan Date: Tue, 5 Oct 2021 14:47:46 -0400 Subject: [PATCH] Return playlists sorted in `getPlaylists` Subsonic endpoint --- server/subsonic/playlists.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/subsonic/playlists.go b/server/subsonic/playlists.go index 15f4adf28..883b0bc04 100644 --- a/server/subsonic/playlists.go +++ b/server/subsonic/playlists.go @@ -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