Update SortSearch

minor bug fixes