Column.argSort

size_t[] argSort(bool descending = false, bool nullsLast = false)

The permutation that sorts this column: stable (key, index) pair sort with the index tie-break always applied (D17), nulls first by default, floats under the total order (NaN greatest). See ddn.columnar.sort.argSortOf.

Parameters

descendinglargest keys first
nullsLastnulls after the valid entries instead of before

Returns

the sorted permutation of 0 .. length.