Updated the search function with category search. reworked the searched message. Added sorting of results of search