Bug 65762 [Viewers] Need to back out of change to AbstractTreeViewer.isExpandable
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java
}
	/**
	 * Returns the index where the item should be inserted.
	 * 
	 * @param parent
	 *           The parent widget the element will be inserted into.
	 * @param element
	 *           The element to insert.
	 * @return int
	 */
	protected int indexForElement(Widget parent, Object element) {
		ViewerSorter sorter = getSorter();
		Item[] items = getChildren(parent);
		if (sorter == null)
			return items.length;
		int count = items.length;
		int min = 0, max = count - 1;
		while (min <= max) {
			int mid = (min + max) / 2;
			Object data = items[mid].getData();
			int compare = sorter.compare(this, data, element);
			if (compare == 0) {
				
				while (compare == 0) {
					++mid;
					if (mid >= count) {
						break;
					}
					data = items[mid].getData();
					compare = sorter.compare(this, data, element);