Does anyone have an idea how to get the Tax line below the Total line, I think it is in this code.

for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
echo ' <tr>' . "\n" .


' <td align="right" class="'. str_replace('_', '-',
$order->totals[$i]['class']) . '-Text">' .
$order->totals[$i]['title'] . '</td>' . "\n" .

' <td align="right" class="'. str_replace('_', '-',
$order->totals[$i]['class']) . '-Amount">' .
$order->totals[$i]['text'] . '</td>' . "\n" .

' </tr>' . "\n";