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
}
			return filtered.toArray();
		}
		return elements;
	}
	/**
     * Create the new elements in the parent widget. If the
     * child already exists do nothing.
     * @param widget
     * @param elements Sorted list of elements to add.
     */
    private void createAddedElements(Widget widget, Object[] elements) {
		if(elements.length == 1){
			if (equals(elements[0], widget.getData())) {
				return;
			}
		}
		
		ViewerSorter sorter = getSorter ();
		TreePath parentPath = internalGetSorterParentPath(widget, sorter);
		Item[] items = getChildren(widget);
		
		 
		
		int lastInsertion = 0;		
		
		
		if(items.length == 0){
			for (int i = 0; i < elements.length; i++) {
				createTreeItem(widget, elements[i], -1);