mirror of
https://github.com/johnkerl/miller.git
synced 2026-01-22 18:06:52 +00:00
sort-link doc update
This commit is contained in:
parent
dba71136e9
commit
3893268f94
2 changed files with 4 additions and 0 deletions
|
|
@ -214,6 +214,8 @@ a b c
|
|||
|
||||
## The sort function by example
|
||||
|
||||
The Miller DSL has a [`sort`](reference-dsl-builtin-functions.md#sort) function:
|
||||
|
||||
* It returns a sorted copy of an input array or map.
|
||||
* Without second argument, uses Miller's default ordering which is numbers numerically, then strings lexically.
|
||||
* With second which is string, takes sorting flags from it: `"f"` for lexical or `"c"` for case-folded lexical, or `"t"` for natural sort order. An additional `"r"` in this string is for reverse/descending.
|
||||
|
|
|
|||
|
|
@ -66,6 +66,8 @@ GENMD-EOF
|
|||
|
||||
## The sort function by example
|
||||
|
||||
The Miller DSL has a [`sort`](reference-dsl-builtin-functions.md#sort) function:
|
||||
|
||||
* It returns a sorted copy of an input array or map.
|
||||
* Without second argument, uses Miller's default ordering which is numbers numerically, then strings lexically.
|
||||
* With second which is string, takes sorting flags from it: `"f"` for lexical or `"c"` for case-folded lexical, or `"t"` for natural sort order. An additional `"r"` in this string is for reverse/descending.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue