feat: sort results in 'view all' of search sections in alphabetical order

This commit is contained in:
ashilkn 2023-11-21 10:36:46 +05:30
parent 6e87cb0289
commit cf15c791b2

View file

@ -83,6 +83,8 @@ class _SearchSectionAllPageState extends State<SearchSectionAllPage> {
builder: (context, snapshot) {
if (snapshot.hasData) {
final sectionResults = snapshot.data!;
sectionResults
.sort((a, b) => a.name().compareTo(b.name()));
return Text(sectionResults.length.toString())
.animate()
.fadeIn(