You can introduce custom directives for table headers to sort columns

# Country Area Population
{{ country.id }} {{ country.name }} {{ country.area | number }} {{ country.population | number }}