m is undefined - sorttable.js when sorting on three columns
<p>When I am trying to sort on three columns (State, Status, and Queue), I get a javascript error that says m is undefined (292 out of range 32). I don't think that this error is getting originated in the sorttable.js file. It is pointing me to the jquery.min.js file. I can't tell why these three columns are having problems, since the data within them is pretty standard (just words, never blank). It seems to just keep sorting by whichever column was last successfully sorted. </p>

<p>Here is the code:</p>

<p>User clicks on "Go" Button - sends ajax query request to another page, which populates the results.</p>

<pre><code>function SubmitSearch() {
$("#searchResults").html('&lt;br/&gt;&lt;center&gt;&lt;img src="../Images/barberpole.gif" style="margin-top:3px;"&gt;&lt;/center&gt;');

//Deleted all initializing code. There is no problem with this.         

$.ajax(
{
    type: "POST",
    url: "../ajaxURLs/SearchRequests.aspx?requestID=" + requestID,
    cache: false,
    success: function (data) {
        $("#searchResults").html(data);
        sorttable.makeSortable(document.getElementById("SearchResults"));
    }
});
</code></pre>

<p>}</p>

<p>Table </p>

<pre class="lang-xml prettyprint-override"><code>&lt;asp:GridView ID="SearchResults" runat="server" AutoGenerateColumns="False" DataKeyNames="requestNumber"  CSSClass="mailGrid" 
             OnRowDataBound="SearchRedirect"&gt;
                &lt;Columns&gt;
                  &lt;asp:BoundField DataField="requestNumber" HeaderText="Request Number" InsertVisible="False" ReadOnly="True" /&gt;
                  &lt;asp:BoundField DataField="state" HeaderText="State" /&gt;
                  &lt;asp:BoundField DataField="status" HeaderText="Status" /&gt;
                  &lt;asp:BoundField DataField="queue" HeaderText="Queue" /&gt;
                  &lt;asp:BoundField DataField="oem" HeaderText="OEM"/&gt;
                  &lt;asp:BoundField DataField="rayMaterialNum" HeaderText="Material Number"/&gt;
                  &lt;asp:BoundField DataField="mfgPartNumber" HeaderText="Mfg Part Number"/&gt;
                  &lt;asp:BoundField DataField="program" HeaderText="Program"/&gt;
                  &lt;asp:BoundField DataField="purchaseOrder" HeaderText="Purchase Order" /&gt;
                  &lt;asp:BoundField DataField="purchReq" HeaderText="Purchase Requisition"/&gt;
                  &lt;asp:BoundField DataField="businessUnit" HeaderText="Business Unit"/&gt;
                  &lt;asp:BoundField DataField="site" HeaderText="Site"/&gt;
                  &lt;asp:BoundField DataField="buyer" HeaderText="Buyer"/&gt;
                  &lt;asp:BoundField DataField="requisitioner" HeaderText="Requisitioner"/&gt;
                  &lt;asp:BoundField DataField="componentEngineer" HeaderText="Component Engineer"/&gt;
                  &lt;asp:BoundField DataField="responsibleEngineer" HeaderText="Responsible Engineer"/&gt;
                  &lt;asp:BoundField DataField="qualityEngineer" HeaderText="Quality Engineer"/&gt;
                &lt;/Columns&gt;
          &lt;/asp:GridView&gt;
</code></pre>

<p>I'm using version 2 of sorttable.js, Firefox 13.0.1, jquery v1.7.2</p>

<p>Generated html:</p>

<pre><code>&lt;table id="SearchResults" class="mailGrid" cellspacing="0" border="1" style="border-collapse:collapse;" rules="all"&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th class=" " scope="col"&gt;Request Number&lt;/th&gt;
&lt;th class=" sorttable_sorted_reverse" scope="col"&gt;
&lt;th class=" " scope="col"&gt;Status&lt;/th&gt;
&lt;th class="" scope="col"&gt;Queue&lt;/th&gt;
&lt;th class=" " scope="col"&gt;OEM&lt;/th&gt;
&lt;th class=" " scope="col"&gt;Raytheon Material Number&lt;/th&gt;
&lt;th class="" scope="col"&gt;Mfg Part Number&lt;/th&gt;
&lt;th class="" scope="col"&gt;Program&lt;/th&gt;
&lt;th class="" scope="col"&gt;Purchase Order&lt;/th&gt;
&lt;th class="" scope="col"&gt;Purchase Requisition&lt;/th&gt;
&lt;th class="" scope="col"&gt;Business Unit&lt;/th&gt;
&lt;th class="" scope="col"&gt;Site&lt;/th&gt;
&lt;th class="" scope="col"&gt;Buyer&lt;/th&gt;
&lt;th class="" scope="col"&gt;Requisitioner&lt;/th&gt;
&lt;th class="" scope="col"&gt;Component Engineer&lt;/th&gt;
&lt;th class="" scope="col"&gt;Responsible Engineer&lt;/th&gt;
&lt;th class="" scope="col"&gt;Quality Engineer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr onclick="ViewRequest('2000')"&gt;
&lt;tr onclick="ViewRequest('2001')"&gt;
&lt;tr onclick="ViewRequest('2002')"&gt;
&lt;tr onclick="ViewRequest('2003')"&gt;
&lt;tr onclick="ViewRequest('2004')"&gt;
&lt;tr onclick="ViewRequest('2005')"&gt;
&lt;tr onclick="ViewRequest('2006')"&gt;
&lt;tr onclick="ViewRequest('2007')"&gt;
&lt;tr onclick="ViewRequest('2008')"&gt;
&lt;tr onclick="ViewRequest('2009')"&gt;
&lt;tr onclick="ViewRequest('2010')"&gt;
&lt;tr onclick="ViewRequest('2011')"&gt;
&lt;tr onclick="ViewRequest('2012')"&gt;
&lt;tr onclick="ViewRequest('2013')"&gt;
&lt;tr onclick="ViewRequest('2014')"&gt;
&lt;tr onclick="ViewRequest('2015')"&gt;
&lt;tr onclick="ViewRequest('2016')"&gt;
&lt;tr onclick="ViewRequest('2017')"&gt;
&lt;/tbody&gt;
&lt;tfoot&gt;&lt;/tfoot&gt;
&lt;/table&gt;
</code></pre>

<p>Example of one of the tr's. They all follow this format, and the columns in question will always have data.</p>

<pre><code>&lt;tr onclick="ViewRequest('2000')"&gt;
&lt;td&gt;2000&lt;/td&gt;
&lt;td&gt;Open&lt;/td&gt;
&lt;td&gt;Initiated&lt;/td&gt;
&lt;td&gt;Buyer&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0179450&lt;/td&gt;
&lt;td&gt;Pending&lt;/td&gt;
&lt;td&gt;Pending&lt;/td&gt;
&lt;td&gt;Pending&lt;/td&gt;
&lt;td&gt;Pending&lt;/td&gt;
&lt;/tr&gt;
</code></pre>
