reodering child nodes while pasting to avoid root node paste problems