You can easily do that under Configuration --> Ticket Content.
In Ticket types choose the type you want to edit and click on "Alter Custom Fields", from here the interface speaks for itself. Just drag and drop the fields and it will automatically nest them where you want.