             class="{'num' if i >= 2 else False}">{item}</td>
            <td class="num">{format(country[-1], ".2f")}</td>
        </tr>
    </tbody>
</table>

<script type="text/python">
from browser import document
from browser.template import Template

def sort(evt, elt):
    # get reference to the arrow
    arrow = evt.target

    # get title cell
    th = arrow.closest('TH')

    # get column of title cell
    column = th.index("th")

    # elt.data.order is a table with the sort order to apply to eac