nushell/docs/commands/dfr_sort.md
JT 8c0a2d3c15
Auto-generate markdown command docs (#4451)
* Finish updating

* a couple improvements

* Update renames

* cleanup examples
2022-02-13 21:22:51 -05:00

415 B

title layout version
dfr sort command 0.59.0

Creates new sorted dataframe or series

Signature

> dfr sort ...rest --reverse

Parameters

  • ...rest: column names to sort dataframe
  • --reverse: invert sort

Examples

Create new sorted dataframe

> [[a b]; [3 4] [1 2]] | dfr to-df | dfr sort a

Create new sorted series

> [3 4 1 2] | dfr to-df | dfr sort