Change order before copying template