SV-Sortable - basic examples

This example shows how a sortable table can be implemented with very little configuration. Simply specify the data type on a <th> element using the data-sort-type attribute, and the script handles the rest.

int float string
15 -.18 banana
95 36 coke
2 -152.5 apple
-53 88.5 zebra
195 -858 orange

Tables using colspans are handled just fine.

The Big Table Header
Letter colspan=2 Number
def X 9 1
abc Z 8 2
bcd Y 7 0