Added function to reorder form elements in vertical columns