naturalComparable<T extends Comparable<T>> function

int naturalComparable<T extends Comparable<T>>(
  1. T a,
  2. T b
)

Natural static Comparator function using Comparable arguments.

Implementation

int naturalComparable<T extends Comparable<T>>(T a, T b) => a.compareTo(b);