--- sites/all/modules/myaccount_alter/myaccount_alter.module	2009-01-02 12:53:20.000000000 -0500
+++ sites/all/modules/myaccount_alter_new/myaccount_alter.module	2009-01-14 16:35:53.000000000 -0500
@@ -98,14 +98,14 @@ function myaccount_alter_profile_alter(&
   if (!user_access('show unaltered my account page') || $user->uid == 1) {
     foreach ($account->content AS $category => $items) {
       $cat_class = 'myaccount_alter_'. str_replace(" ", "", $category);
+      //reorder sections
+      if ($weight = variable_get($cat_class .'_order', 0)) {
+        $account->content[$category]['#weight'] = $weight;
+      }
       foreach ($items as $key => $item) {
         if (variable_get($cat_class .'_'. str_replace(" ", "", $key), 1) == 0) {
           //unset disabled fields
           unset($account->content[$category][$key]);
-          //reorder sections
-          if ($weight = variable_get($cat_class .'_order', 0)) {
-            $account->content[$category]['#weight'] = $weight;
-          }
           //if unsetting the field leaves the whole section empty, unset the whole section
           if (element_children($account->content[$category]) == array()) {
             unset($account->content[$category]);
