Heap’s elements are ordered from left to right, but they are not ordered from top to bottom. code example
Example: heap sort name meaning
A sorting algorithm that works by first organizing the data to be sorted into a special type of binary tree called a heap. The heap itself has, by definition, the largest value at the top of the tree.