Sort radio stations by name

This commit is contained in:
Deluan 2023-01-15 16:12:22 -05:00
parent d319b66ff3
commit c748d669d6
2 changed files with 2 additions and 1 deletions

View file

@ -51,7 +51,7 @@ func (api *Router) DeleteInternetRadio(r *http.Request) (*responses.Subsonic, er
func (api *Router) GetInternetRadios(r *http.Request) (*responses.Subsonic, error) {
ctx := r.Context()
radios, err := api.ds.Radio(ctx).GetAll()
radios, err := api.ds.Radio(ctx).GetAll(model.QueryOptions{Sort: "name"})
if err != nil {
return nil, err
}