DataFrame.sort
DataFrame sort(string by, bool descending = false,
bool nullsLast = false)Sorts the frame by one key column (stable; nulls first by default).
Parameters
by | the key column name |
descending | largest keys first |
nullsLast | nulls after valid entries |
Returns
the sorted frame.
Throws
DataFrameException when the key column is absent.
DataFrame sort(string[] by, bool[] descending, bool nullsLast = false)Sorts the frame by several key columns: one stable pass per key, last key first, so earlier keys break the ties of later ones.
Parameters
by | the key column names, major first |
descending | per-key direction flags (by.length entries) |
nullsLast | nulls after valid entries in every key |
Returns
the sorted frame.
Throws
DataFrameException when a key column is absent or the flag
array length differs from by.