func (e entryOrdering) Less(i, j int) bool {
	a := e[i]
	b := e[j]
	// 1. Prefer guaranteed (not borrowing)
	aGuaranteed := len(a.borrows) == 0
	bGuaranteed := len(b.borrows) == 0
	if aGuaranteed != bGuaranteed {
		return aGuaranteed
	}
	// 2. FIFO
	return a.Obj.CreationTimestamp.Before(&b.Obj.CreationTimestamp)
}
// Less is the ordering criteria:
// 1. guaranteed before borrowing.
// 2. FIFO on creation timestamp.
Less is the ordering criteria:
1. guaranteed before borrowing.
2. FIFO on creation timestamp.
// Less is the ordering criteria : // 1 . guaranteed before borrowing . // 2 . FIFO on creation timestamp .
func (e entryOrdering) Less(i, j int) bool {
	a := e[i]
	b := e[j]
	aGuaranteed := len(a.borrows) == 0
	bGuaranteed := len(b.borrows) == 0
	if aGuaranteed != bGuaranteed {
		return aGuaranteed
	}
	return a.Obj.CreationTimestamp.Before(&b.Obj.CreationTimestamp)
}
func ( e entryOrdering ) Less ( i , j int ) bool { a := e [ i ] b := e [ j ] aGuaranteed := len ( a . borrows ) == 0 bGuaranteed := len ( b . borrows ) == 0 if aGuaranteed != bGuaranteed { return aGuaranteed } return a . Obj . CreationTimestamp . Before ( & b . Obj . CreationTimestamp ) }
Less is the ordering criteria:
1. guaranteed before borrowing.
Less is the ordering criteria : 1 . guaranteed before borrowing .
// 1. Prefer guaranteed (not borrowing) // 2. FIFO