Preserve literal ordering for foreign source references
This commit is contained in:
@@ -38,7 +38,7 @@ func (o SourceRefOrder) Less(left, right source.SourceRef) bool {
|
||||
if lessEndpoint(positions, left.StartUnitID, right.StartUnitID) {
|
||||
return true
|
||||
}
|
||||
if lessEndpoint(o.positions, right.StartUnitID, left.StartUnitID) {
|
||||
if lessEndpoint(positions, right.StartUnitID, left.StartUnitID) {
|
||||
return false
|
||||
}
|
||||
return lessEndpoint(positions, left.EndUnitID, right.EndUnitID)
|
||||
|
||||
Reference in New Issue
Block a user