Skip to content

Commit 1b72464

Browse files
committed
fix(dashboard): update headlines sort order
- Change headlines sort option from 'createdAt' to 'updatedAt' - This ensures that the most recently updated headlines appear first
1 parent 43393a0 commit 1b72464

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/dashboard/bloc/dashboard_bloc.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class DashboardBloc extends Bloc<DashboardEvent, DashboardState> {
3232
_dashboardSummaryRepository.read(id: kDashboardSummaryId),
3333
_headlinesRepository.readAll(
3434
pagination: const PaginationOptions(limit: 5),
35-
sort: const [SortOption('createdAt', SortOrder.desc)],
35+
sort: const [SortOption('updatedAt', SortOrder.desc)],
3636
),
3737
]);
3838

0 commit comments

Comments
 (0)