markmv - v1.39.2
    Preparing search index...

    Class ManualOrderJoinStrategy

    Join strategy that uses a custom manual ordering with alphabetical fallback.

    Allows explicit specification of file order through the customOrder option. Files not specified in the custom order are appended in alphabetical order. This provides maximum control over the final document structure.

    Manual ordering with fallback

    const strategy = new ManualOrderJoinStrategy({
    customOrder: ['intro.md', 'main-content.md', 'conclusion.md'],
    mergeFrontmatter: true
    });

    // Files will be ordered as specified, with any others alphabetically
    const result = await strategy.join(sections);

    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