Skip to content

Commit

Permalink
Sort by album name, then artist name
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Sep 7, 2020
1 parent 9003370 commit e50a720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion persistence/album_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e50a720

Please sign in to comment.