Index: theme/views_data_export.theme.inc
===================================================================
--- theme/views_data_export.theme.inc	(revision 33)
+++ theme/views_data_export.theme.inc	(working copy)
@@ -217,6 +217,8 @@
 
   // Construct the tbody of a table, see theme_table().
 
+  $output = ''; // JVO+
+
   $ts = tablesort_init($vars['header']);
 
   $flip = array(
@@ -255,7 +257,8 @@
       $output .= ' <tr' . drupal_attributes($attributes) . '>';
       $i = 0;
       foreach ($cells as $cell) {
-        $cell = tablesort_cell($cell, $header, $ts, $i++);
+//JVO-        $cell = tablesort_cell($cell, $header, $ts, $i++);
+        $cell = tablesort_cell($cell, $vars['header'], $ts, $i++);
         $output .= _theme_table_cell($cell);
       }
       $output .= " </tr>\n";
@@ -287,7 +290,8 @@
   $ts = tablesort_init($vars['header']);
 
   foreach ($vars['header'] as $cell) {
-    $cell = tablesort_header($cell, $header, $ts);
+//JVO-    $cell = tablesort_header($cell, $header, $ts);
+    $cell = tablesort_header($cell, $vars['header'], $ts);//JVO+
     $vars['header_row'] .= _theme_table_cell($cell, TRUE);
   }
 
