useSampleWidthSorted static method

List<NamedLine> useSampleWidthSorted(
  1. Size sample,
  2. List<NamedLine> chaos
)

Implementation

static List<NamedLine> useSampleWidthSorted(Size sample, List<NamedLine> chaos){
  return chaos..sort((a, b)=>a.computeWidth(sample).compareTo(b.computeWidth(sample)));
}