Reorder input fields