Update the default comparison function of BinaryHeap.