order child nodes to match invocation order