Add  constructor param to support custom comparator function