html-convert/src/main/java/org/netbeans/tools/tutorials/LocalizedTutorialSection.java [56:74]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void sort(Map<File, String> fileTitles) {
        ArrayList<File> sortedFiles = new ArrayList<>(this.files);
        Collator collator = Collator.getInstance(language.locale);
        sortedFiles.sort((file1, file2) -> {
            String title1 = fileTitles.get(file1);
            String title2 = fileTitles.get(file2);
            title1 = title1 == null ? file1.getName() : title1;
            title2 = title2 == null ? file2.getName() : title2;
            return collator.compare(title1, title2);
        });
        this.files = sortedFiles;
        details.clear();
        for (File file : files) {
            HashMap<String, String> detail = new HashMap<String, String>();
            details.add(detail);
            detail.put(URL_KEY, file.getName().replaceAll(".asciidoc", ".html"));
            detail.put(TITLE_KEY, fileTitles.get(file));
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



tutorials-convert/src/main/java/org/netbeans/tools/tutorials/LocalizedTutorialSection.java [56:74]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void sort(Map<File, String> fileTitles) {
        ArrayList<File> sortedFiles = new ArrayList<>(this.files);
        Collator collator = Collator.getInstance(language.locale);
        sortedFiles.sort((file1, file2) -> {
            String title1 = fileTitles.get(file1);
            String title2 = fileTitles.get(file2);
            title1 = title1 == null ? file1.getName() : title1;
            title2 = title2 == null ? file2.getName() : title2;
            return collator.compare(title1, title2);
        });
        this.files = sortedFiles;
        details.clear();
        for (File file : files) {
            HashMap<String, String> detail = new HashMap<String, String>();
            details.add(detail);
            detail.put(URL_KEY, file.getName().replaceAll(".asciidoc", ".html"));
            detail.put(TITLE_KEY, fileTitles.get(file));
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



