I have a aspx page that looks something like this:
Some label
Some complex control
Check the jQuery TableSorter Plugin, it's very powerful it detects the underlying datatypes of the columns, and you can sort your table columns programmatically:
$("#yourTable").tablesorter( {sortList: [[0,0]]} );
// This will sort "yourTable" using
// the first column, ascending [columnIndex, 0=ASC or 1 = DESC]