Skip to content

Commit

Permalink
sort-link doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl committed Feb 5, 2024
1 parent 3a2149b commit 62220ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/src/sorting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions docs/src/sorting.md.in
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 62220ca

Please sign in to comment.