Detaching, manipulating, appending
<p>I was reading <a href="http://jqfundamentals.com/book/index.html" rel="nofollow">jqFundamentals</a> this weekend, and Rebecca Murphey talks about:</p>

<blockquote>
  <p>The $.fn.detach method is extremely
  valuable if you are doing heavy
  manipulation to an element. In that
  case, it's beneficial to $.fn.detach
  the element from the page, work on it
  in your code, and then restore it to
  the page when you're done.</p>
</blockquote>

<p>I have a table sort like this, which I got from "Learning jQuery", page 140:</p>

<pre><code>var rows = $table.find('tr:not(:has(th))').get();
rows.sort(function(rowA,rowB) {
...
});
$.each(rows, function(index,row) {
  $table.children('tbody').append(row);
});
</code></pre>

<p>I wonder if I should detach the table and reattach it?</p>
