d2ir: Review fixes #714

This commit is contained in:
Anmol Sethi 2023-01-28 00:00:25 -08:00
parent 291f2fdfe3
commit da500a8437
No known key found for this signature in database
GPG key ID: 25BC68888A99A8BA

View file

@ -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
}