Use disc number when sorting search results
This commit is contained in:
parent
b5762bd7bf
commit
ee3f9fd5a0
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue