Closed tonosama-atlacatl closed 8 years ago
I think I found a better solution:
if(val1.runtimeType == bool)return (val1 == val2 ? 0 : (val1 == true?1:-1))*sign;
ok, add in 749d060d5b3d49e81ace9b762a9f52e019590f76
Also, this breaks if the column type is DateTime and some rows are null.
Looking at the ColumnFilter.dart example. This doesn't work:
Part of the problem is that booleans don't have a 'compareTo' function. This has been in discussions for quite a while now... https://groups.google.com/a/dartlang.org/forum/#!msg/misc/5BxhAJJOyow/VrmDv8DtQ1wJ
A "not-so-fancy" solution: