Bug 60117 [Viewers] Need a DeferredTableContentProvider
eclipse-SDK-I20040427-win32.zip 1. Perform a search & display the results with the flat layout 2. Now sort the results by 'Parent Name'... notice the type names do not come first 2. Switch to the hierarchical layout, then back to the flat - now the type names are first
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/NameSorter.java
public int compare(Viewer viewer, Object e1, Object e2) {
		String property1= getProperty(e1);
		String property2= getProperty(e2);
		return collator.compare(property1, property2);
	}
	protected String getProperty(Object element) {
		if (element instanceof IJavaElement)
			return ((IJavaElement)element).getElementName();
		if (element instanceof IResource)
			return ((IResource)element).getName();
		return ""; 
	}
	public boolean isSorterProperty(Object element, String property) {
		return true;
	}
}