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

Method Sort

tensor/table/indexview.go:112–115  ·  view source on GitHub ↗

Sort sorts the indexes into our Table using given Less function. The Less function operates directly on row numbers into the Table as these row numbers have already been projected through the indexes.

(lessFunc func(et *Table, i, j int) bool)

Source from the content-addressed store, hash-verified

110// The Less function operates directly on row numbers into the Table
111// as these row numbers have already been projected through the indexes.
112func (ix *IndexView) Sort(lessFunc func(et *Table, i, j int) bool) {
113 ix.lessFunc = lessFunc
114 sort.Sort(ix)
115}
116
117// SortIndexes sorts the indexes into our Table directly in
118// numerical order, producing the native ordering, while preserving

Callers 2

SortColumnMethod · 0.95
SortColumnsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected