Mental Model
Heap sort turns the list into a special tree called a heap where the biggest value is always on top, then removes the top repeatedly to sort the list.
Analogy: Imagine a pile of boxes stacked so the biggest box is always on top. You take the biggest box off, then rearrange the pile so the next biggest box is on top, repeating until all boxes are sorted.
Array: [4, 10, 3, 5, 1]
Heap tree:
10
/ \
5 3
/ \
4 1