Skip to content

🎧 Your Personal Streaming Service

Sort by album name, then artist name

Deluane50a720818b1
diff --git a/persistence/album_repository.go b/persistence/album_repository.go
index d930d1442..c47e224b1 100644
--- a/persistence/album_repository.go
+++ b/persistence/album_repository.go
@@ -30,7 +30,7 @@ func NewAlbumRepository(ctx context.Context, o orm.Ormer) model.AlbumRepository
r.ormer = o
r.tableName = "album"
r.sortMappings = map[string]string{
- "name": "order_album_name",
+ "name": "order_album_name asc, order_album_artist_name asc",
"artist": "compilation asc, order_album_artist_name asc, order_album_name asc",
"random": "RANDOM()",
"max_year": "max_year asc, name, order_album_name asc",