yq/pkg/yqlib/doc/headers/sort.md
2021-12-05 10:58:26 +11:00

186 B

Sort

Sorts an array. Use sort to sort an array as is, or sort_by(exp) to sort by a particular expression (e.g. subfield).

Note that at this stage, yq only sorts scalar fields.