feat: sort results in 'view all' of search sections in alphabetical order (#1530)

This commit is contained in:
Ashil 2023-11-24 21:57:29 +05:30 committed by GitHub
commit 75f141e006
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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(