sort albums in library by artist -> year -> album title

fixes #111
This commit is contained in:
Henrik Friedrichsen
2019-11-30 17:32:33 +01:00
parent 85e9e99d87
commit feee204f9c

View File

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