Assign ordering to nodes created in ExpandNode. Only roughly 1/2 of the function