Moved the sorting of tasks from SearchFormatter to SearchManager