Removed def sort. Search method with do search and sort