Now I understand why it's in reverse order, thanks.
How about "// Collapse nodes from the bottom upwards to assure that all nodes are collapsed"