sortByTargetValue method

void sortByTargetValue()

Implementation

void sortByTargetValue() {
  sort((a, b) {
    var cmp = a.targetValue.compareTo(b.targetValue);
    if (cmp == 0) {
      cmp = a.selectedValues.compareWith(b.selectedValues);
    }
    return cmp;
  });
}