sortSearchResults
Official
Sort search results.
Import:
import { sortSearchResults } from 'obsidian';Example:
sortSearchResults([{ match: { score: 1, matches: [[0, 3]]} }]);Signature:
function sortSearchResults(results: SearchResultContainer[]): voidParameters:
| Parameter | Type | Description |
|---|---|---|
results | SearchResultContainer[] | The search results to sort. |
Returns: void
Example:
sortSearchResults([{ match: { score: 1, matches: [[0, 3]]} }]);