MCPcopy Create free account
hub / github.com/cogentcore/core / Sort

Method Sort

tensor/table/splits.go:157–160  ·  view source on GitHub ↗

Sort sorts the splits according to the given Less function.

(lessFunc func(spl *Splits, i, j int) bool)

Source from the content-addressed store, hash-verified

155
156// Sort sorts the splits according to the given Less function.
157func (spl *Splits) Sort(lessFunc func(spl *Splits, i, j int) bool) {
158 spl.lessFunc = lessFunc
159 sort.Sort(spl)
160}
161
162// SortLevels sorts the splits according to the current index level ordering of values
163// i.e., first index level is outer sort dimension, then within that is the next, etc

Callers 4

SortLevelsMethod · 0.95
SortOrderMethod · 0.95
mainFunction · 0.45
NamesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected