Controlling the display order of custom field sets that are shown both in a webform and in CiviCRM, via the webform_civicrm integration module
This bug was resolved in CiviCRM 4.5.2, the relevant issue was CRM-15435: Case ActivityView popups do not respect custom group weights.