title: JQuery Tablesorter text extraction not working as intended
body: <p>Please find my HTML and javascript below. I am trying to sort a column in the table based on what radio button is selected.</p>
  
  <pre><code>&lt;table id="test"&gt;
   &lt;thead&gt;&lt;tr&gt;&lt;th&gt;data&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
   &lt;tbody&gt;
    &lt;tr&gt;&lt;td&gt;&lt;span&gt;1.00 %&lt;/span&gt;&amp;nbsp;&lt;span&gt;$5,000&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;&lt;td&gt;&lt;span&gt;0.50 %&lt;/span&gt;&amp;nbsp;&lt;span&gt;$300.00&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;&lt;td&gt;&lt;span&gt;1.40 %&lt;/span&gt;&amp;nbsp;&lt;span&gt;$0&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;&lt;td&gt;&lt;span&gt;1.20 %&lt;/span&gt;&amp;nbsp;&lt;span&gt;$500&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
   &lt;/tbody&gt;
  &lt;/table&gt;
  
  
  $("#test").tablesorter({
              textExtractionCustom: {
                  0: function (node) {
                      if ($('#radio-choice-h-2a').is(':checked')) {
                          return $(node).find("span").first().text().replace('%', '').replace(' ', '');
                      }
                      else if ($('#radio-choice-h-2b').is(':checked')) {
                          return $(node).find("span").last().text().replace('$', '').replace(',', '');
                      }
                      else {
                          return $(node).find("span").first().text().replace('%', '').replace(' ', '');
                      }
                  }
              },
              headers: { 0: { sorter: "digit" }
              }
          });
  </code></pre>
  
  <p>if radio button radio-choice-h-2a is checked, then sort by the content in the first span in each cell and if radio button radio-choice-h-2b is selected, then sort by the content in the second span element.</p>
  
  <p>This doesn't seem to be working as intended. Any help is appreciated. Thanks.</p>