swap order of :children in invoke