Sort Users A-Z
This commit is contained in:
parent
4f8c69caf3
commit
771c5c546f
1 changed files with 2 additions and 0 deletions
|
|
@ -135,6 +135,8 @@ class _MihSearchMzansiState extends State<MihSearchMzansi> {
|
||||||
} else if (snapshot.connectionState == ConnectionState.done &&
|
} else if (snapshot.connectionState == ConnectionState.done &&
|
||||||
snapshot.hasData) {
|
snapshot.hasData) {
|
||||||
// return Text("Pulled Data successfully");
|
// return Text("Pulled Data successfully");
|
||||||
|
snapshot.requireData!
|
||||||
|
.sort((a, b) => a.username.compareTo(b.username));
|
||||||
return BuildUserSearchResultsList(userList: snapshot.requireData!);
|
return BuildUserSearchResultsList(userList: snapshot.requireData!);
|
||||||
} else if (!snapshot.hasData) {
|
} else if (!snapshot.hasData) {
|
||||||
return Column(
|
return Column(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue