Bug 211977 [Dialogs] Open Resource does not sort entries correctly
I20071204-1547 I opened the Open Resource dialog and types "plugin.xml". The list of matches contained: plugin.xml - org.eclipse.search.tests plugin.xml - org.eclipse.search The sorter should make sure that shorter entries are shown before longer entries with the same prefix, i.e.: plugin.xml - org.eclipse.search plugin.xml - org.eclipse.search.tests
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/FilteredResourcesSelectionDialog.java
return true;
			return false;
		}
		/**
		 * @param item
		 *            Must be instance of IResource, otherwise
		 *            <code>false</code> will be returned.
		 * @see org.eclipse.ui.dialogs.FilteredItemsSelectionDialog.ItemsFilter#matchItem(java.lang.Object)
		 */
		public boolean matchItem(Object item) {
			if (!(item instanceof IResource)) {
				return false;
			}
			IResource resource = (IResource) item;
			if ((!this.showDerived && resource.isDerived())
					|| ((this.filterTypeMask & resource.getType()) == 0))
				return false;
			return matches(resource.getName());
		}
		/*
		 * (non-Javadoc)
		 * 
		 * @see org.eclipse.ui.dialogs.FilteredItemsSelectionDialog.ItemsFilter#isSubFilter(org.eclipse.ui.dialogs.FilteredItemsSelectionDialog.ItemsFilter)
		 */
		public boolean isSubFilter(ItemsFilter filter) {
			if (!super.isSubFilter(filter))
				return false;
			if (filter instanceof ResourceFilter)
				if (this.showDerived == ((ResourceFilter) filter).showDerived)
					return true;