Stable sorts -- sometimes essential.. SortStable stably 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. It is *essential* that it always returns false
(lessFunc func(et *Table, i, j int) bool)
| 239 | // It is *essential* that it always returns false when the two are equal |
| 240 | // for the stable function to actually work. |
| 241 | func (ix *IndexView) SortStable(lessFunc func(et *Table, i, j int) bool) { |
| 242 | ix.lessFunc = lessFunc |
| 243 | sort.Stable(ix) |
| 244 | } |
| 245 | |
| 246 | // SortStableColumnName sorts the indexes into our Table according to values in |
| 247 | // given column name, using either ascending or descending order. |
no outgoing calls
no test coverage detected