comparator method

int comparator(
  1. T a,
  2. T b
)

Returns a Comparator that compares one element to another.

Implementation

int comparator(T a, T b) =>
    throw UnsupportedError('No comparator available for $this.');