completed sorting functionality of search results and added keystroke func to search btn