Skip to content

Commit 6b011bc

Browse files
committed
sort reasons in stats
1 parent c9331d9 commit 6b011bc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/Stats.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ Stats.prototype.toJson = function toJson(options, forToString) {
139139
if(dep.loc) obj.loc = dep.loc.start.line + ":" + dep.loc.start.column + "-" +
140140
(dep.loc.start.line != dep.loc.end.line ? dep.loc.end.line + ":" : "") + dep.loc.end.column
141141
return obj;
142+
}).sort(function(a, b) {
143+
return a.moduleId - b.moduleId;
142144
});
143145
}
144146
if(showSource && module._source) {

0 commit comments

Comments
 (0)