sortByTargetValue method
void
sortByTargetValue()
Sorts the Answer List by Answer.targetValue.
Implementation
void sortByTargetValue() {
sort((a, b) {
var cmp = a.targetValue.compareTo(b.targetValue);
if (cmp == 0) {
cmp = a.selectedValues.compareWith(b.selectedValues);
}
return cmp;
});
}