Skip to content

Commit 8a8f1dc

Browse files
committed
fix(account): add explicit sort order in available sources fetch
- Update sort option in readAll method to include explicit ascending order - This ensures consistent behavior across different database implementations
1 parent cf4592b commit 8a8f1dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/account/bloc/available_sources_bloc.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class AvailableSourcesBloc
3535
// Assuming readAll without parameters fetches all items.
3636
// TODO(fulleni): Add pagination if necessary for very large datasets.
3737
final response = await _sourcesRepository.readAll(
38-
sort: [const SortOption('name')],
38+
sort: [const SortOption('name', SortOrder.asc)],
3939
);
4040
emit(
4141
state.copyWith(

0 commit comments

Comments
 (0)