Skip to content

Commit

Permalink
added sorting to update list
Browse files Browse the repository at this point in the history
  • Loading branch information
kumarpalsinh25 committed Feb 20, 2025
1 parent b20c9dd commit 42a2068
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/lib/features/news/providers/news_providers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ final updateListProvider =
entries.addAll(stories);
entries.addAll(news);

// sort
entries.sort((a, b) => b.originServerTs().compareTo(a.originServerTs()));

return entries;
});

Expand Down

0 comments on commit 42a2068

Please sign in to comment.