d2ir: Review fixes #714
This commit is contained in:
parent
291f2fdfe3
commit
da500a8437
1 changed files with 1 additions and 1 deletions
|
|
@ -1446,7 +1446,7 @@ func (g *Graph) SortEdgesByAST() {
|
|||
if len(e1.References) == 0 || len(e2.References) == 0 {
|
||||
return i < j
|
||||
}
|
||||
return e1.References[0].Edge.Range.Before(edges[j].References[0].Edge.Range)
|
||||
return e1.References[0].Edge.Range.Before(e2.References[0].Edge.Range)
|
||||
})
|
||||
g.Edges = edges
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue