// Less returns true if the point with index i is less then the
// one with index j. It first looks for X, then for Y.
11319
func (ps Points) Less(i, j int) bool {
	// Check X first.
	switch {
	case ps[i].x < ps[j].x:
		return true
	case ps[i].x > ps[j].x:
		return false
	}
	// Now check Y.
	switch {
	case ps[i].y < ps[j].y:
		return true
	case ps[i].y > ps[j].y:
		return false
	}
	return false
}
859412
func (b *Sortable) Less(i, j int) bool {
	for _, c := range b.Comparators {
		if c(i, j) {
			return true
		} else if c(j, i) {
			return false
		}
	}
	return false
}
677325
func (a VarRefs) Less(i, j int) bool {
	if a[i].Val != a[j].Val {
		return a[i].Val < a[j].Val
	}
	return a[i].Type < a[j].Type
}
988765
func (i *btreeItem) Less(iother btree.Item) bool {
	switch other := iother.(type) {
	case *btreeItem:
		return bytes.Compare(i.Key, other.Key) < 0
	case *prefixItem:
		return !iother.Less(i)
	default:
		return false
	}
}
122458
func (id1 ID) Less(id2 ID) bool {
	if id1.Scene == id2.Scene {
		return natsort.Less(id1.Num, id2.Num)
	} else {
		return natsort.Less(id1.Scene, id2.Scene)
	}
}
837119
func (rl *Raw) Less(b btree.Item) bool {
	return rl.id < b.(Line).ID()
}
857473
func (s btreeString) Less(i btree.Item) bool {
	return s.l(s.s, i.(btreeString).s)
}
1087304
func (s Uint8Slice) Less(i, j int) bool {
	return s[i] < s[j]
}
1064368
func (s *xorKeySpace) Less(k1, k2 Key) bool {
	return bytes.Compare(k1.Bytes, k2.Bytes) < 0
}
1148100
func (pt PrimitiveTypes) Less(i, j int) bool {
	return pt[i] < pt[j]
}
485496
func (r records) Less(i, j int) bool {
	return r[i].FullPath < r[j].FullPath
}
913643
func (s Int8Slice) Less(i, j int) bool {
	return s[i] < s[j]
}
1168675
func (tal TabletAliasList) Less(i, j int) bool {
	if tal[i].Cell < tal[j].Cell {
		return true
	} else if tal[i].Cell > tal[j].Cell {
		return false
	}
	return tal[i].Uid < tal[j].Uid
}
1111573
func (it Items) Less(i, j int) bool {
	return it[i].Key < it[j].Key
}
941916
func (k *KeyBindings) Less(i, j int) bool {
	return k.Bindings[i].Keys[k.seqIndex].Index() < k.Bindings[j].Keys[k.seqIndex].Index()
}
1108353
func (durs ByFirstEntered) Less(i, j int) bool {
	return durs[i].FirstEntered.Before(durs[j].FirstEntered)
}
1152287
func (a *aclIterator) Less(i, j int) bool {
	return a.acls[i].ID < a.acls[j].ID
}