< and > is usually a shortcut to a compareTo method.
just use that method instead.
data.sort((a, b) {
return a['name'].toLowerCase().compareTo(b['name'].toLowerCase());
});
< and > is usually a shortcut to a compareTo method.
just use that method instead.
data.sort((a, b) {
return a['name'].toLowerCase().compareTo(b['name'].toLowerCase());
});