markmv - v1.39.2
    Preparing search index...

    Class AlphabeticalJoinStrategy

    Join strategy that orders content alphabetically by title or filename.

    Provides simple, predictable ordering by sorting files alphabetically based on their extracted title (from frontmatter or first header) or falling back to the filename if no title is available.

    Alphabetical joining

    const strategy = new AlphabeticalJoinStrategy({
    separator: '\n\n<!-- Next Section -->\n\n'
    });

    const result = await strategy.join(sections);
    console.log(`Files ordered: ${result.sourceFiles.join(', ')}`);

    Hierarchy (View Summary)

    Index
    • Returns title unless it is undefined or the empty string, in which case filePath is used -- an empty title is treated as "no title supplied" rather than a meaningful value to sort or display by.

      Parameters

      • title: string | undefined
      • filePath: string

      Returns string