@@ -141,6 +141,7 @@ class HeadlinesSearchBloc
141
141
limit: _limit,
142
142
cursor: successState.cursor,
143
143
),
144
+ sort: [const SortOption ('name' , SortOrder .asc)],
144
145
);
145
146
emit (
146
147
successState.copyWith (
@@ -158,6 +159,7 @@ class HeadlinesSearchBloc
158
159
limit: _limit,
159
160
cursor: successState.cursor,
160
161
),
162
+ sort: [const SortOption ('name' , SortOrder .asc)],
161
163
);
162
164
emit (
163
165
successState.copyWith (
@@ -228,12 +230,14 @@ class HeadlinesSearchBloc
228
230
rawResponse = await _topicRepository.readAll (
229
231
filter: {'q' : searchTerm},
230
232
pagination: const PaginationOptions (limit: _limit),
233
+ sort: [const SortOption ('name' , SortOrder .asc)],
231
234
);
232
235
processedItems = rawResponse.items.cast <FeedItem >();
233
236
case ContentType .source:
234
237
rawResponse = await _sourceRepository.readAll (
235
238
filter: {'q' : searchTerm},
236
239
pagination: const PaginationOptions (limit: _limit),
240
+ sort: [const SortOption ('name' , SortOrder .asc)],
237
241
);
238
242
processedItems = rawResponse.items.cast <FeedItem >();
239
243
default :
0 commit comments