You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to have way to impose second, third etc sorting order. See the below example. I.e. first sort all documents on X, but for if the value is the same, use the second key Y to sort within those.
Please describe your feature request.
It would be great to have way to impose second, third etc sorting order. See the below example. I.e. first sort all documents on X, but for if the value is the same, use the second key Y to sort within those.
Related to #1024
#1024 (comment)
Describe the solution you'd like
If we have
file.yml
like:And we run a command:
yq ea '[.] | sort_by(.name, .other) | .[] | splitDoc' file.yaml
it could output
Describe alternatives you've considered
Have not tried any other solutions. As far as I know this isn't supported, see: #1024 (comment)
The text was updated successfully, but these errors were encountered: