completed sorting functionality of search results table and added keypress func to search button