Extracts the internal items from the heap. If you want to get sorted all items, you can use sortItems.
sortItems
A heap to be extracted.
The internal items array that consists the heap.
Extracts the internal items from the heap. If you want to get sorted all items, you can use
sortItems.