I changed in an upgrade of an application many table and field names. Created a conversion which deals with that.

In short read table names in an array one old_table_names and one new_table_Names
Read all field names per table in old and new.
Logic to map the table names where it is the same
hard code what goes from one name to the new name
Same for fields.

Run it and done. A bit simplistic but works.

In your case only changing the ordering is easier. Create the source Dump it to CSV and read it in.

Peter