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)
| 110 | // The Less function operates directly on row numbers into the Table |
| 111 | // as these row numbers have already been projected through the indexes. |
| 112 | func (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 |
no outgoing calls
no test coverage detected