Skip to content

Commit

Permalink
db: fix sorting albums by artist (DD3Boh#262)
Browse files Browse the repository at this point in the history
Co-authored-by: Millencolin <[email protected]>
  • Loading branch information
2 people authored and reocat committed Jan 30, 2025
1 parent a8c7cb6 commit 90e8436
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ interface AlbumsDao : ArtistsDao {
val orderBy = when (sortType) {
AlbumSortType.CREATE_DATE -> "album.rowId ASC"
AlbumSortType.NAME -> "album.title COLLATE NOCASE ASC"
AlbumSortType.ARTIST -> """ORDER BY (
AlbumSortType.ARTIST -> """(
SELECT LOWER(GROUP_CONCAT(name, ''))
FROM artist
WHERE id IN (SELECT artistId FROM album_artist_map WHERE albumId = album.id)
Expand Down

0 comments on commit 90e8436

Please sign in to comment.