title: PHP dynamically generated table and jquery tablesorter
body: <p>I have a table that's being generated with PHP</p>
  
  <pre><code>&lt;table id="mytable" class="tablesorter tablesorter-jui ui-widget ui-widget-content ui-corner-all hasStickyHeaders"&gt;
  &lt;thead style=""&gt;//code for headers &lt;/thead&gt;
  &lt;tbody&gt;
  &lt;?php 
  foreach ($active_participants as $participant) 
  {
  //code for rows..
  }
  ?&gt;
  &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I am applying the jquery tablesorter plugin to it, however it does not sort(no jquery errors). I need it to display on page load, because it's the first thing the user will see, however can I have it wait for the page to finish loading before applying </p>
  
  <pre><code> $("#myTable").tablesorter({ sortList: [[0,0], [1,0]] });
  </code></pre>
  
  <p>what is the proper way to do this?</p>