Here is the heap I am looking at,

Attachment 11102

As you can see from the heap tree, the order of the nodes are everywhere. The number 1 is on the right side and the number 2 is bottom left. How would I make it so I can output those numbers in order?