Skip to content

🎧 Your Personal Streaming Service

fix: group compilations together in the restful API. fix #93

Deluan97d95ea7942d
diff --git a/persistence/album_repository.go b/persistence/album_repository.go
index 5df75cb8b..034159c32 100644
--- a/persistence/album_repository.go
+++ b/persistence/album_repository.go
@@ -20,6 +20,10 @@ func NewAlbumRepository(ctx context.Context, o orm.Ormer) model.AlbumRepository
r.ctx = ctx
r.ormer = o
r.tableName = "album"
+ r.sortMappings = map[string]string{
+ "artist": "compilation asc, album_artist asc, name asc",
+ }
+
return r
}