constructor(compareFn) {
    if (compareFn) {
      this.compare = compareFn;
    }
  }
Initialize the comparator object with a compare function

If the function is not passed, it will use the default
compare signs (<, > and ==)

@param { Function } compareFn