title: Tablesorter n[0] undefined
body: <p>I am having issues with the tablesorter. The error is:
  n[0] is undefined</p>
  
  <pre><code>function appendToTable(table,cache) {
  
              if(table.config.debug) {var appendTime = new Date()}
  
              var c = cache, 
                  r = c.row, 
                  n= c.normalized, 
                  totalRows = n.length, 
                  checkCell = (n[0].length-1), 
                  tableBody = $(table.tBodies[0]),
                  rows = [];
  
              for (var i=0;i &lt; totalRows; i++) {
                  rows.push(r[n[i][checkCell]]);  
                  if(!table.config.appender) {
  
                      var o = r[n[i][checkCell]];
                      var l = o.length;
                      for(var j=0; j &lt; l; j++) {
  
                          tableBody[0].appendChild(o[j]);
  
                      }
  
                      //tableBody.append(r[n[i][checkCell]]);
                  }
              }   
  </code></pre>
  
  <p>Above is a code snippet from the jquery.tablesorter.js
  The line where it says checkCell = (n[0].length - 1) is where the error is occuring.</p>
  
  <p>I do not understand how an undefined object is being passed into the function. The tablesorter was working fine in one of my project but not working fine on this project.</p>
  
  <p>[EDIT]
  This is the code snippet used to call the tablesorter. If I comment out the tablesorter and tablesorterPager nothing else in my code will break.</p>
  
  <pre><code>$reviewTable = $("#reviewTable");
  $reviewTable.tablesorter();
  $reviewTable.tablesorterPager({ container: $("#pager"), size: 100, widgets: ['zebra'] });
  </code></pre>
  
  <p>Below is the client side</p>
  
  <pre><code>&lt;asp:Repeater ID="reviewRepeater" runat="server"&gt;
      &lt;HeaderTemplate&gt;
          &lt;table cellpadding="0" cellspacing="0" class="MarkAsReceived" id="reviewTable"&gt;
              &lt;thead&gt;
                  &lt;tr class="even"&gt;
                      &lt;th align="left"&gt;Review ID&lt;/th&gt;
                      &lt;th align="left"&gt;Date Submitted&lt;/th&gt;
                      &lt;th align="left"&gt;Rating&lt;/th&gt;
                      &lt;th align="left"&gt;Image&lt;/th&gt;  
                      &lt;th align="left"&gt;ProductId&lt;/th&gt;
                      &lt;th align="left"&gt;Status&lt;/th&gt;
                      &lt;th align="left"&gt;Name&lt;/th&gt;
                  &lt;/tr&gt;
              &lt;/thead&gt;
              &lt;tbody&gt;
      &lt;/HeaderTemplate&gt;
      &lt;ItemTemplate&gt;
          &lt;tr&gt;
              &lt;td align="left"&gt;&lt;%#DataBinder.Eval(Container.DataItem, "ReviewId")%&gt;&lt;/td&gt;
              &lt;td align="left"&gt;&lt;%#DataBinder.Eval(Container.DataItem, "SubmissionDate")%&gt;&lt;/td&gt;
              &lt;td align="left"&gt;&lt;%#DataBinder.Eval(Container.DataItem, "Rating")%&gt;&lt;/td&gt;
              &lt;td align="left"&gt;&lt;%#hasImage(DataBinder.Eval(Container.DataItem, "ReviewerImages"))%&gt;&lt;/td&gt;
              &lt;td align="left"&gt;&lt;%#DataBinder.Eval(Container.DataItem, "ProductId")%&gt;&lt;/td&gt;
              &lt;td align="left"&gt;&lt;%#DataBinder.Eval(Container.DataItem, "Status")%&gt;&lt;/td&gt;
              &lt;td align="left"&gt;&lt;%#DataBinder.Eval(Container.DataItem, "Nickname")%&gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/ItemTemplate&gt;
      &lt;AlternatingItemTemplate&gt;
          &lt;tr&gt;
              &lt;td align="left"&gt;&lt;%#DataBinder.Eval(Container.DataItem, "ReviewId")%&gt;&lt;/td&gt;
              &lt;td align="left"&gt;&lt;%#DataBinder.Eval(Container.DataItem, "SubmissionDate")%&gt;&lt;/td&gt;
              &lt;td align="left"&gt;&lt;%#DataBinder.Eval(Container.DataItem, "Rating")%&gt;&lt;/td&gt;
              &lt;td align="left"&gt;&lt;%#hasImage(DataBinder.Eval(Container.DataItem, "ReviewerImages"))%&gt;&lt;/td&gt;
              &lt;td align="left"&gt;&lt;%#DataBinder.Eval(Container.DataItem, "ProductId")%&gt;&lt;/td&gt;
              &lt;td align="left"&gt;&lt;%#DataBinder.Eval(Container.DataItem, "Status")%&gt;&lt;/td&gt;
              &lt;td align="left"&gt;&lt;%#DataBinder.Eval(Container.DataItem, "Nickname")%&gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/AlternatingItemTemplate&gt;
      &lt;FooterTemplate&gt;
              &lt;/tbody&gt;
          &lt;/table&gt;
          &lt;asp:Label ID="lblEmpty" Text="No Items." runat="server" Visible='&lt;%# reviewRepeater.Items.Count == 0 %&gt;'&gt;&lt;/asp:Label&gt;
      &lt;/FooterTemplate&gt;
  &lt;/asp:Repeater&gt;
  </code></pre>