Bug 44891 Search view hanging while resorting search matches
Build 3.0 M4 Search all references to type String in self-hosted workspace. Finds almost 80.000 of them. Now sort them by parent name... it will take minutes to recover, while it works UI is entirely non responsive.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/ElementNameSorter.java
if (e2 instanceof ISearchResultViewEntry)
			name2= fLabelProvider.getText(e2);
		if (name1 == null)
			name1= ""; 
		if (name2 == null)
			name2= ""; 
		return getCollator().compare(name1, name2);
	}
	/*
	 * Overrides method from ViewerSorter
	 */
	public boolean isSorterProperty(Object element, String property) {
		return true;
	}
	/*
	 * Overrides method from ViewerSorter
	 */
	public void sort(Viewer viewer, Object[] elements) {
		
		ISearchResultView view= SearchUI.getSearchResultView();
		if (view == null)
			return;
		fLabelProvider= view.getLabelProvider();
		if (fLabelProvider instanceof JavaSearchResultLabelProvider) {
			((JavaSearchResultLabelProvider)fLabelProvider).setOrder(JavaSearchResultLabelProvider.SHOW_ELEMENT_CONTAINER);
			super.sort(viewer, elements);
		}
	}
}