Skip to content

Commit

Permalink
chore: sort album tracks by year or trackNo or title
Browse files Browse the repository at this point in the history
  • Loading branch information
MSOB7YY committed Oct 13, 2023
1 parent 39bd4e8 commit 95a7301
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/controller/indexer_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class Indexer {
mainMapFolders.addForce(tr.folder, tr);
});

mainMapAlbums.value.updateAll((key, value) => value..sortByAlt((e) => e.year, (e) => e.title));
mainMapAlbums.value.updateAll((key, value) => value..sortByAlts((e) => e.year, [(e) => e.trackNo, (e) => e.title]));
mainMapArtists.value.updateAll((key, value) => value..sortByAlt((e) => e.year, (e) => e.title));
mainMapGenres.value.updateAll((key, value) => value..sortByAlt((e) => e.year, (e) => e.title));
mainMapFolders.updateAll((key, value) => value..sortBy((e) => e.filename.toLowerCase()));
Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ packages:
dependency: "direct overridden"
description:
path: "."
ref: "4628356a449cdeb12bef5a3a9b4ed37668530192"
resolved-ref: "4628356a449cdeb12bef5a3a9b4ed37668530192"
ref: a479566dba509bed428cd0135ce3c9b6145807d8
resolved-ref: a479566dba509bed428cd0135ce3c9b6145807d8
url: "https://github.com/MSOB7YY/dart_extensions"
source: git
version: "0.0.1"
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependency_overrides:
dart_extensions:
git:
url: https://github.com/MSOB7YY/dart_extensions
ref: 4628356a449cdeb12bef5a3a9b4ed37668530192
ref: a479566dba509bed428cd0135ce3c9b6145807d8
archive: ^3.3.8

dependencies:
Expand Down

0 comments on commit 95a7301

Please sign in to comment.