feat: sort results in 'view all' of search sections in alphabetical order (#1530)
This commit is contained in:
commit
75f141e006
|
@ -83,6 +83,8 @@ class _SearchSectionAllPageState extends State<SearchSectionAllPage> {
|
||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
if (snapshot.hasData) {
|
if (snapshot.hasData) {
|
||||||
final sectionResults = snapshot.data!;
|
final sectionResults = snapshot.data!;
|
||||||
|
sectionResults
|
||||||
|
.sort((a, b) => a.name().compareTo(b.name()));
|
||||||
return Text(sectionResults.length.toString())
|
return Text(sectionResults.length.toString())
|
||||||
.animate()
|
.animate()
|
||||||
.fadeIn(
|
.fadeIn(
|
||||||
|
|
Loading…
Reference in a new issue