sortable tables

not sure if this is _the_ way to implement sortable tables, but it works.