Skip to content

getNoteFilesSorted

Retrieves an array of all note files from the app’s vault and sorts them alphabetically by their file path.

Import:

import { getNoteFilesSorted } from '@mnaoumov/obsidian-lib/vault';

Signature:

function getNoteFilesSorted(app: App): TFile[]

Parameters:

Parameter Type Description
app App The Obsidian app instance.

Returns: TFile[] — An array of all note files in the vault sorted by file path.