MCPcopy Create free account
hub / github.com/EngoEngine/ecs / Less

Method Less

entity.go:127–129  ·  view source on GitHub ↗

Less will return true if the ID of element at i is less than j; part of the sort.Interface

(i, j int)

Source from the content-addressed store, hash-verified

125// Less will return true if the ID of element at i is less than j;
126// part of the sort.Interface
127func (is IdentifierSlice) Less(i, j int) bool {
128 return is[i].ID() < is[j].ID()
129}
130
131// Swap the elements at positions i and j
132// part of the sort.Interface

Callers

nothing calls this directly

Calls 1

IDMethod · 0.65

Tested by

no test coverage detected