Fix: make album sorting case-insensitive

Fixes #724
This commit is contained in:
Henrik Friedrichsen
2022-02-18 22:39:21 +01:00
parent a491a20de2
commit f229dfc814

View File

@@ -411,7 +411,12 @@ impl Library {
}
albums.sort_unstable_by_key(|album| {
format!("{}{}{}", album.artists[0], album.year, album.title)
format!(
"{}{}{}",
album.artists[0].to_lowercase(),
album.year,
album.title.to_lowercase()
)
});
*(self.albums.write().unwrap()) = albums;