yq/pkg/yqlib/doc/headers/sort.md

6 lines
186 B
Markdown
Raw Normal View History

2021-12-04 02:54:12 +00:00
# Sort
2021-12-04 23:53:37 +00:00
Sorts an array. Use `sort` to sort an array as is, or `sort_by(exp)` to sort by a particular expression (e.g. subfield).
2021-12-04 02:54:12 +00:00
Note that at this stage, `yq` only sorts scalar fields.