1. Click on Settings > Custom Fields
2. Select the folder in which the custom field lives
3. Click the icon to the left of the field name and drag them to the order in which you want them to display.
The fields will then be re-ordered in the customer details page.