Sorting alphabetically

Below gives an example of sorting the links on a FolderPage alphabetically, based on their title in the frontmatter.

quartz.config.ts
      Plugin.FolderPage({
        sortFn: (f1, f2) => {
          const f1Title = f1.frontmatter?.title.toLowerCase() ?? ""
          const f2Title = f2.frontmatter?.title.toLowerCase() ?? ""
          return f1Title.localeCompare(f2Title)
        },
      }),