Go to Administration -> Settings -> Ticket Fields
Use the top left dropdown bar to select the department you want to change the order of ticket fields for. In this example we selected General using the dropdown. Now that you see dotted lines by each field it means that the fields are now editable and we can simply drag and drop the ticket fields in the order we would like to see them in.
In this example we do not want FTP Pass to come before FTP User so we simply drag FTP User in front of FTP Pass as you can see from the below screenshot.