Skip to content

Commit 93e2a6f

Browse files
committed
buffer sort
1 parent 842090b commit 93e2a6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dag-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function DAGNode (data, links) {
2121
this.links = links || []
2222

2323
function linkSort (a, b) {
24-
return a.name.localeCompare(b.name)
24+
return (new Buffer(a.name, 'ascii').compare(new Buffer(b.name, 'ascii')))
2525
}
2626

2727
// copy - returns a clone of the DAGNode

0 commit comments

Comments
 (0)