mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
14 lines
340 B
TypeScript
14 lines
340 B
TypeScript
import type * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
|
|
|
|
export default function sortByEndLineNumberAsc(a: monaco.editor.FindMatch, b: monaco.editor.FindMatch) {
|
|
if (a.range.endLineNumber < b.range.endLineNumber) {
|
|
return -1;
|
|
}
|
|
|
|
if (a.range.endLineNumber > b.range.endLineNumber) {
|
|
return 1;
|
|
}
|
|
|
|
return 0;
|
|
}
|