fix(ui): sort by favourited

This commit is contained in:
Deluan 2024-09-19 13:05:26 -04:00
parent 27780683aa
commit 50870d3e61
3 changed files with 8 additions and 2 deletions

View file

@ -68,11 +68,13 @@ func NewArtistRepository(ctx context.Context, db dbx.Builder) model.ArtistReposi
})
if conf.Server.PreferSortTags {
r.sortMappings = map[string]string{
"name": "COALESCE(NULLIF(sort_artist_name,''),order_artist_name)",
"name": "COALESCE(NULLIF(sort_artist_name,''),order_artist_name)",
"starred_at": "starred, starred_at",
}
} else {
r.sortMappings = map[string]string{
"name": "order_artist_name",
"name": "order_artist_name",
"starred_at": "starred, starred_at",
}
}
return r