Sort by album name, then artist name

This commit is contained in:
Deluan 2020-09-07 16:19:26 -04:00
parent 900337081b
commit e50a720818
1 changed files with 1 additions and 1 deletions

View File

@ -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",