Skip to content

Commit

Permalink
Episode sort is now case insensitive.
Browse files Browse the repository at this point in the history
  • Loading branch information
amugofjava committed Sep 17, 2024
1 parent cdb4496 commit 6c77b08
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/core/environment.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Environment {
static const _applicationName = 'Anytime';
static const _applicationUrl = 'https://github.com/amugofjava/anytime_podcast_player';
static const _projectVersion = '1.3.9';
static const _build = '153';
static const _build = '154';

static var _agentString = userAgentAppString;

Expand Down
8 changes: 6 additions & 2 deletions lib/repository/sembast/sembast_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -494,10 +494,14 @@ class SembastRepository extends Repository {
sortOrder = SortOrder('publicationDate', true);
break;
case PodcastEpisodeSort.alphabeticalDescending:
sortOrder = SortOrder('title', false);
sortOrder = SortOrder<String>.custom('title', (title1, title2) {
return title2.toLowerCase().compareTo(title1.toLowerCase());
});
break;
case PodcastEpisodeSort.alphabeticalAscending:
sortOrder = SortOrder('title', true);
sortOrder = SortOrder<String>.custom('title', (title1, title2) {
return title1.toLowerCase().compareTo(title2.toLowerCase());
});
break;
}
return sortOrder;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: anytime
description: Anytime Podcast Player

version: 1.3.9+153
version: 1.3.9+154

environment:
sdk: '>=3.2.0 <4.0.0'
Expand Down

0 comments on commit 6c77b08

Please sign in to comment.