Use disc number when sorting search results

This commit is contained in:
Antoine Gersant 2024-09-22 20:18:01 -07:00
parent b5762bd7bf
commit ee3f9fd5a0

View file

@ -44,7 +44,7 @@ fn compare_songs(a: &collection::Song, b: &collection::Song) -> Ordering {
} else { } else {
&a.album_artists &a.album_artists
}; };
(artists, a.year, &a.album, a.track_number) (artists, a.year, &a.album, a.disc_number, a.track_number)
}; };
let b_key = { let b_key = {
@ -53,7 +53,7 @@ fn compare_songs(a: &collection::Song, b: &collection::Song) -> Ordering {
} else { } else {
&b.album_artists &b.album_artists
}; };
(artists, b.year, &b.album, b.track_number) (artists, b.year, &b.album, b.disc_number, b.track_number)
}; };
a_key.cmp(&b_key) a_key.cmp(&b_key)