Bug 139385 [Viewers] Viewer#setComparator(ViewerComparator) has no effect
Version: 3.2.0 Build id: I20060428-1315 Setting a Comparator in setComparator is actually not triggering any sorting in my viewer. It works when I call setComparator(ViewerSorter). Any ideas? Ben
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java
*/
	protected Object[] getSortedChildren(Object parentElementOrTreePath) {
		Object[] result =  getFilteredChildren(parentElementOrTreePath);
		ViewerSorter sorter = getSorter();
		if (parentElementOrTreePath!=null && sorter instanceof TreePathViewerSorter) {
			TreePathViewerSorter tpvs = (TreePathViewerSorter) sorter;
			
			
			result = (Object[]) result.clone();
			
			TreePath path = null;
	    	if (parentElementOrTreePath instanceof TreePath) {
	    		path = (TreePath) parentElementOrTreePath;
			} else {
				Object parent = parentElementOrTreePath;
				Widget w = internalGetWidgetToSelect(parent);
				if (w != null) {
					path = internalGetSorterParentPath(w, sorter);
				}
			}
	    	tpvs.sort(this, path, result);
		} else if (sorter != null) {
			
			result = (Object[]) result.clone();
			sorter.sort(this, result);
		}
		return result;
	}
	
	/* (non-Javadoc)