Order albums by full original date (this time is for real). Fixes #1452

This commit is contained in:
Deluan 2023-05-23 09:51:02 -04:00 committed by Joe Stump
parent cff7d5ccfc
commit f80e628442
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -27,7 +27,7 @@ func NewAlbumRepository(ctx context.Context, o orm.QueryExecutor) model.AlbumRep
"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, coalesce(nullif(original_date, ''), nullif(release_date, '')), name, order_album_name asc",
"max_year": "coalesce(nullif(original_date,''), cast(max_year as text)), release_date, name, order_album_name asc",
"recently_added": recentlyAddedSort(),
}
r.filterMappings = map[string]filterFunc{