Skip to content

Commit

Permalink
fix sort for v8 files
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Jul 21, 2024
1 parent ff40ab8 commit 86af176
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/converter/converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -1496,6 +1496,14 @@ const generateV8DataList = (stateList, options) => {
coverageData[sourcePath] = istanbulData;
});

// sort v8DataList (files)
v8DataList.sort((a, b) => {
if (a.sourcePath > b.sourcePath) {
return 1;
}
return -1;
});

return {
v8DataList,
fileSources,
Expand Down

0 comments on commit 86af176

Please sign in to comment.