Skip to content

Commit f327348

Browse files
reverse not sort
1 parent 62bc2e7 commit f327348

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/lib-engine/src/util/getMatchesInRange.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ export function generateMatchesInRange(
4343

4444
return direction === "forward"
4545
? imap(text.matchAll(regex), matchToRange)
46-
: // oxlint-disable-next-line unicorn/no-array-sort
47-
Array.from(text.matchAll(regex), matchToRange).sort();
46+
: // oxlint-disable-next-line unicorn/no-array-reverse
47+
Array.from(text.matchAll(regex), matchToRange).reverse();
4848
}

0 commit comments

Comments
 (0)