Bug 76496 [Dialogs] "Open Resource" folder sorting gets reversed
Build 20041013 1. Press ctrl+shift+r to open the "Open Resource" dialog. 2. Type "plugin.xlm" 3. Notice the typo, delete the last two characters, and then type "ml" to fix the typo. 4. The "In Folders:" area now shows with reversed sorting (!!).
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ResourceListSelectionDialog.java
return;
        }
        stringMatcher = new StringMatcher(patternString, true, false);
        if (oldPattern != null && (oldPattern.length() != 0)
                && oldPattern.endsWith("*") && patternString.endsWith("*")) { 
            
            int matchLength = oldPattern.length() - 1;
            if (patternString.regionMatches(0, oldPattern, 0, matchLength)) {
                updateGatherThread.refilter = true;
                updateGatherThread.firstMatch = 0;
                updateGatherThread.lastMatch = descriptorsSize - 1;
                updateGatherThread.start();
                return;
            }
        }
        final ArrayList resources = new ArrayList();
        BusyIndicator.showWhile(getShell().getDisplay(), new Runnable() {
            public void run() {
                getMatchingResources(resources);
                IResource resourcesArray[] = new IResource[resources.size()];
                resources.toArray(resourcesArray);
                initDescriptors(resourcesArray);
            }
        });
        updateGatherThread.firstMatch = 0;
        updateGatherThread.lastMatch = descriptorsSize - 1;
        updateGatherThread.start();
    }
    /**
     * Return an image for a resource descriptor.