fix: group compilations together in the restful API. fix #93
This commit is contained in:
parent
cbbebb3264
commit
97d95ea794
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue