diff --git a/lib/brain/article_provider.dart b/lib/brain/article_provider.dart index 584550a..69b62bf 100644 --- a/lib/brain/article_provider.dart +++ b/lib/brain/article_provider.dart @@ -93,7 +93,7 @@ class ArticleProvider { await Future.wait(futures); } newsArticles.addAll(subscriptionArticles); - newsArticles.toList().sort((a, b) => b.publishedAt.compareTo(a.publishedAt)); + newsArticles = (newsArticles.toList()..sort((a, b) => b.publishedAt.compareTo(a.publishedAt))).toSet(); return newsArticles.toList(); }