Skip to content

Commit 89c6067

Browse files
authored
fix reference collection sorting (#111)
1 parent 521a8c0 commit 89c6067

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

decoder/reference_origins.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func (d *PathDecoder) CollectReferenceOrigins() (reference.Origins, error) {
6868
}
6969

7070
sort.SliceStable(refOrigins, func(i, j int) bool {
71-
return refOrigins[i].OriginRange().Filename <= refOrigins[i].OriginRange().Filename &&
71+
return refOrigins[i].OriginRange().Filename <= refOrigins[j].OriginRange().Filename &&
7272
refOrigins[i].OriginRange().Start.Byte < refOrigins[j].OriginRange().Start.Byte
7373
})
7474

0 commit comments

Comments
 (0)