add sorting to search

add sort by column heading to search results table