DataTable Sort
Enabling sortable property on a column is enough to make a column sortable. Multiple column sorting is enabled using sortMode property and used with metaKey.
Single Column
{{ formatCurrency(slotProps.data.price) }}
Multiple Columns
Use metakey to add a column to the sort selection.
{{ formatCurrency(slotProps.data.price) }}
Presort
{{ formatCurrency(slotProps.data.price) }}
Removable Sort
{{ formatCurrency(slotProps.data.price) }}