Skip to content

ResultDom.getQueueSortFunction method

ResultDom › getQueueSortFunction

Unofficial

Get the order in which the search queue should visit files under the byRelevance sort order: files whose name matches a query term first, then the most recently modified.

Signature:

getQueueSortFunction(): ((a: TFile, b: TFile) => number) | null

Returns: ((a: TFile, b: TFile) => number) | null — The comparator, or null when the results are not sorted by relevance.