From e50a720818b1eecd6d1dd5652ed579512c7f50f9 Mon Sep 17 00:00:00 2001 From: Deluan Date: Mon, 7 Sep 2020 16:19:26 -0400 Subject: [PATCH] Sort by album name, then artist name --- persistence/album_repository.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/persistence/album_repository.go b/persistence/album_repository.go index d930d144..c47e224b 100644 --- a/persistence/album_repository.go +++ b/persistence/album_repository.go @@ -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",