Mover la mesa tfoot en la parte superior
<table>
<thead>...</thead>
<tfoot style="display: table-row-group;">...</tfoot>
<tbody>...</tbody>
</table>
hirohito
<table>
<thead>...</thead>
<tfoot style="display: table-row-group;">...</tfoot>
<tbody>...</tbody>
</table>