Add <thead> & <tbody>
HTML
<table class="ms-listviewtable">
<tr>
<th>head</th>
</tr>
<tr>
<td>body</td>
</tr>
</table>
JavaScript
var $t = $("table.ms-listviewtable");
if ($t.has("tbody")) $t.find("tbody").children().unwrap();
$t.find("tr:first").wrap("<thead />");
$t.find("tr").not(":first").wrapAll("<tbody />");