Skip to content

Commit cc048ae

Browse files
committed
feat(account): improve sources list sorting and coding standards
- Add sorting by name to the sources list retrieval - Update import statements for better clarity - Convert pending task comment to a TODO with assigned username
1 parent a124ce8 commit cc048ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/account/bloc/available_sources_bloc.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'dart:async';
22

33
import 'package:bloc/bloc.dart';
4-
import 'package:core/core.dart' show HttpException, Source;
4+
import 'package:core/core.dart';
55
import 'package:data_repository/data_repository.dart';
66
import 'package:equatable/equatable.dart';
77

@@ -33,9 +33,9 @@ class AvailableSourcesBloc
3333
emit(state.copyWith(status: AvailableSourcesStatus.loading));
3434
try {
3535
// Assuming readAll without parameters fetches all items.
36-
// Add pagination if necessary for very large datasets.
36+
// TODO(fulleni): Add pagination if necessary for very large datasets.
3737
final response = await _sourcesRepository.readAll(
38-
// limit: _sourcesLimit,
38+
sort: [const SortOption('name')],
3939
);
4040
emit(
4141
state.copyWith(

0 commit comments

Comments
 (0)