Bug 43868 Anonymous classes do not sort properly in Hierarchy view [type hierarchy] [render]
build I20030925 - open hierarchy on ViewerSorter - there are lots of "Anonymous of ViewerSorter" entries sprinkled throughout the otherwise sorted list
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementSorter.java
return cmp;
				}
			}
			return params1.length - params2.length;
		}
		return 0;
	}
	private IPackageFragmentRoot getPackageFragmentRoot(Object element) {
		if (element instanceof ClassPathContainer) {
			
			ClassPathContainer cp= (ClassPathContainer)element;
			Object[] roots= cp.getPackageFragmentRoots();
			if (roots.length > 0)
				return (IPackageFragmentRoot)roots[0];
			
			return cp.getJavaProject().getPackageFragmentRoot("Non-Resolvable");  
		}
		return JavaModelUtil.getPackageFragmentRoot((IJavaElement)element);
	}
	
	private int compareWithLabelProvider(Viewer viewer, Object e1, Object e2) {
		if (viewer == null || !(viewer instanceof ContentViewer)) {
			IBaseLabelProvider prov = ((ContentViewer) viewer).getLabelProvider();
			if (prov instanceof ILabelProvider) {
				ILabelProvider lprov= (ILabelProvider) prov;
				String name1 = lprov.getText(e1);
				String name2 = lprov.getText(e2);
				if (name1 != null && name2 != null) {
					return getCollator().compare(name1, name2);
				}