implement table with sortable columns for index and search results