feat: sort results in 'view all' of search sections in alphabetical order
This commit is contained in:
parent
6e87cb0289
commit
cf15c791b2
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue