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
/**
     * Gets the dialog settings section for this dialog, and creates it if
     * it does not exist yet.
     * 
     * @param dialogSettingsSectionName the section name of this dialog's dialog settings.
     * 
     * @since 3.2
     */
    private IDialogSettings getDialogSettings(String dialogSettingsSectionName) {
        IDialogSettings settings = IDEWorkbenchPlugin.getDefault().getDialogSettings();
        IDialogSettings section = settings.getSection(dialogSettingsSectionName);
        if (section == null) {
            section = settings.addNewSection(dialogSettingsSectionName);
        } 
        return section;
    }
    
    /**
     * Saves the location and dimensions of the shell in the
     * IDE dialog settings.
     * 
     * @param shell The shell whose geometry is to be stored
     * 
     * @since 3.2
     */
    private void saveDialogSettings(Shell shell) {
        Point shellLocation = shell.getLocation();
        Point shellSize = shell.getSize();
        IDialogSettings settings = getDialogSettings(DIALOG_SETTINGS_SECTION);
        settings.put(DIALOG_ORIGIN_X, shellLocation.x);