Skip to content

Commit

Permalink
Fix list sort
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffvli committed Dec 19, 2023
1 parent d6cc6a4 commit 0cd0032
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/api/subsonic/subsonic-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export const SubsonicController: ControllerEndpoint = {
}

if (query.sortBy) {
sortAlbumArtistList(results, query.sortBy, query.sortOrder);
results = sortAlbumArtistList(results, query.sortBy, query.sortOrder);
}

return {
Expand Down Expand Up @@ -818,7 +818,7 @@ export const SubsonicController: ControllerEndpoint = {
}

if (query.sortBy) {
sortSongList(results, query.sortBy, query.sortOrder);
results = sortSongList(results, query.sortBy, query.sortOrder);
}

return {
Expand Down

0 comments on commit 0cd0032

Please sign in to comment.