Get the script ID. Then go to the projects API (
) and paste the scriptID in the API test form and execute. Give permissions and let it run. It will provide an Object. Copy the text of the Object and paste into your favorite editor (e.g., VSCode).
Within the "files" section is an array of file objects. Rearrange them in the desired order. When finished, go back to the API and this time use the
Update Content method. Paste in the scriptID, and in the Request Body area, paste in just the "files" array between the brackets. And execute. Go to the IDE and refresh, the files should be reordered.
I just tried this on a simple project, and it works, so try a small project with just a couple files first. Good luck!