Heapify
Heapify is the process of restoring the heap-order property. For a node, we compare it with its children, select the appropriate child according to min-heap or max-heap ordering, swap when necessary, and continue downward. Bottom-up heap construction applies this process from the last non-leaf node toward the root and builds a heap in O(n) time.
Sift-down heapify for one node is O(log n).
Bottom-up construction of a heap is O(n).
Heapify does not mean sorting the array.
After heapify, the heap-order property is restored.