Change the input order