sortable tables

not sure if this is _the_ way to implement sortable tables, but it works.
is there a better way to use the column "id" both, to display it and use it in a LinkCol?