Skip to content

Commit 962d640

Browse files
committed
sort ranges
1 parent 1d993d7 commit 962d640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/decuplicate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ export function deduplicate_entries(entries: Coverage[]): Coverage[] {
3636
}
3737
}
3838

39-
return Array.from(checked_stylesheets, ([text, { url, ranges }]) => ({ text, url, ranges }))
39+
return Array.from(checked_stylesheets, ([text, { url, ranges }]) => ({ text, url, ranges: ranges.sort((a, b) => a.start - b.start) }))
4040
}

0 commit comments

Comments
 (0)