constructor(compareFunction) {
    this.compare = compareFunction || Comparator.defaultCompareFunction;
  }
Constructor.
@param {function(a: *, b: *)} [compareFunction] - It may be custom compare function that, let's
say may compare custom objects together.