Fix HeapSorter.