diff --git a/includes/view.inc b/includes/view.inc
index abe6c01..4394595 100644
--- a/includes/view.inc
+++ b/includes/view.inc
@@ -856,6 +856,16 @@ class view extends views_db_object {
       // Initialize the style plugin.
       $this->init_style();
 
+      // Give field handlers the opportunity to perform additional queries
+      // using the entire resultset prior to rendering.
+      if ($this->style_plugin->uses_fields()) {
+        foreach ($this->field as $id => $handler) {
+          if (!empty($this->field[$id])) {
+            $this->field[$id]->pre_render($this->result);
+          }
+        }
+      }
+
       $this->style_plugin->pre_render($this->result);
 
       // Let modules modify the view just prior to rendering it.
@@ -870,15 +880,6 @@ class view extends views_db_object {
         $function($this);
       }
 
-      // Give field handlers the opportunity to perform additional queries
-      // using the entire resultset prior to rendering.
-      if ($this->style_plugin->uses_fields()) {
-        foreach ($this->field as $id => $handler) {
-          if (!empty($this->field[$id])) {
-            $this->field[$id]->pre_render($this->result);
-          }
-        }
-      }
       $this->display_handler->output = $this->display_handler->render();
       if ($cache) {
         $cache->cache_set('output');
