compare static method

int compare(
  1. num d1,
  2. num d2
)

Implementation

static int compare(num d1, num d2) {
  return d1.compareTo(d2);
}