Allow overriding of comparator.