Perform one iteration of heap sort. Swap the last key with the largest key and restore the heap in the array/tree shown below. Use the "Decrement" button to reduce the size of the heap.
Select the maximum element and move it to the correct location. Then restore the heap order.
Don't forget to decrement the heap size.