Skip to content

Commit 15d398c

Browse files
committed
fixed sorting
1 parent f0cfbf8 commit 15d398c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/buildDeps.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -623,14 +623,14 @@ function createRealIds(depTree, options) {
623623
}
624624
var diff = b.usages - a.usages;
625625
if(diff !== 0) return diff;
626-
if(typeof a.filename === "string" || typeof b.filename === "string") {
627-
if(typeof a.filename !== "string")
626+
if(typeof a.request === "string" || typeof b.request === "string") {
627+
if(typeof a.request !== "string")
628628
return -1;
629-
if(typeof b.filename !== "string")
629+
if(typeof b.request !== "string")
630630
return 1;
631-
if(a.filename === b.filename)
631+
if(a.request === b.request)
632632
return 0;
633-
return (a.filename < b.filename) ? -1 : 1;
633+
return (a.request < b.request) ? -1 : 1;
634634
}
635635
if(a.dirname === b.dirname)
636636
return 0;

0 commit comments

Comments
 (0)