order most frequent bangs first for site search

This commit is contained in:
Fabian Freund
2024-06-16 20:55:58 +02:00
parent f50391d1da
commit ed8c176286
7 changed files with 41 additions and 10 deletions
@@ -31,6 +31,7 @@ Stream<List<BangData>> bangDataList(
Iterable<BangGroup>? groups,
String? domain,
({String category, String? subCategory})? categoryFilter,
bool? orderMostFrequentFirst,
})? filter,
}) {
final repository = ref.watch(bangDataRepositoryProvider.notifier);
@@ -38,6 +39,7 @@ Stream<List<BangData>> bangDataList(
groups: filter?.groups,
domain: filter?.domain,
categoryFilter: filter?.categoryFilter,
orderMostFrequentFirst: filter?.orderMostFrequentFirst,
);
}