implement sortable columns on tables