fix: group compilations together in the restful API. fix #93
This commit is contained in:
@@ -20,6 +20,10 @@ func NewAlbumRepository(ctx context.Context, o orm.Ormer) model.AlbumRepository
|
|||||||
r.ctx = ctx
|
r.ctx = ctx
|
||||||
r.ormer = o
|
r.ormer = o
|
||||||
r.tableName = "album"
|
r.tableName = "album"
|
||||||
|
r.sortMappings = map[string]string{
|
||||||
|
"artist": "compilation asc, album_artist asc, name asc",
|
||||||
|
}
|
||||||
|
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user