Nodes are printed in ranked order