MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / Less

Method Less

IceFireDB-SQLite/pkg/mysql/mysql/mysql_gtid.go:68–76  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

66}
67
68func (s IntervalSlice) Less(i, j int) bool {
69 if s[i].Start < s[j].Start {
70 return true
71 } else if s[i].Start > s[j].Start {
72 return false
73 } else {
74 return s[i].Stop < s[j].Stop
75 }
76}
77
78func (s IntervalSlice) Swap(i, j int) {
79 s[i], s[j] = s[j], s[i]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected