fix(ui): sort playlist by song duration (#3284)

This commit is contained in:
Deluan 2024-09-19 08:45:49 -04:00
parent 46be041e7b
commit 5baf0b80aa

View File

@ -31,6 +31,7 @@ func (r *playlistRepository) Tracks(playlistId string, refreshSmartPlaylist bool
"artist": "order_artist_name asc",
"album": "order_album_name asc, order_album_artist_name asc",
"title": "order_title",
"duration": "duration", // To make sure the field will be whitelisted
}
if conf.Server.PreferSortTags {
p.sortMappings["artist"] = "COALESCE(NULLIF(sort_artist_name,''),order_artist_name) asc"