Reorder the template