Sort Users A-Z

This commit is contained in:
2025-07-10 11:28:05 +02:00
parent 4f8c69caf3
commit 771c5c546f

View File

@@ -135,6 +135,8 @@ class _MihSearchMzansiState extends State<MihSearchMzansi> {
} else if (snapshot.connectionState == ConnectionState.done &&
snapshot.hasData) {
// return Text("Pulled Data successfully");
snapshot.requireData!
.sort((a, b) => a.username.compareTo(b.username));
return BuildUserSearchResultsList(userList: snapshot.requireData!);
} else if (!snapshot.hasData) {
return Column(