mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-17 02:25:14 +00:00
17 lines
338 B
Go
17 lines
338 B
Go
//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
|
|
}
|