Mental Model
We want to group tree nodes by their vertical columns from left to right, and list nodes top to bottom in each column.
Analogy: Imagine standing in front of a tree and looking straight at it. Nodes that line up vertically in your view belong to the same group. We collect these groups from left side to right side.
1
/ \
2 3
/ \ \
4 5 6
Columns: -2 -1 0 1 2
Nodes: 4 2 1,5 3 6