blob: 0d9dcd7c6963682ef8d793daf6dac15ae933550e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//go:build !386 && !amd64
package fzf
func compareRanks(irank Result, jrank Result, tac bool) bool {
for idx := 3; idx >= 0; idx-- {
left := irank.points[idx]
right := jrank.points[idx]
if left < right {
return true
} else if left > right {
return false
}
}
return (irank.item.Index() <= jrank.item.Index()) != tac
}
|