Merge branch 'bugfix/date_favorite' of kilowatt36/freezer into master
This commit is contained in:
commit
29484b4af6
3 changed files with 11 additions and 4 deletions
|
@ -225,6 +225,7 @@ class _LibraryTracksState extends State<LibraryTracks> {
|
|||
|
||||
List<Track> get _sorted {
|
||||
List<Track> tcopy = List.from(tracks);
|
||||
tcopy.sort((a, b) => a.favoriteDate.compareTo(b.favoriteDate));
|
||||
switch (_sort) {
|
||||
case SortType.ALPHABETIC:
|
||||
tcopy.sort((a, b) => a.title.compareTo(b.title));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue