We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sortBy
reverse
Is your feature request related to a problem? Please describe. I want to sort list of objects by key. And, I want to reverse list.
Describe the solution you'd like sortBy:
echo '[ { "id": 1, "updatedAt": "2024-09-04T00:00:00+09:00" }, { "id": 2, "updatedAt": "2024-09-03T00:00:00+09:00" } ]' | dasel -r json 'sortBy(updatedAt)' [ { "id": 2, "updatedAt": "2024-09-03T00:00:00+09:00" }, { "id": 1, "updatedAt": "2024-09-04T00:00:00+09:00" } ]
reverse:
echo '[ { "id": 1, "updatedAt": "2024-09-04T00:00:00+09:00" }, { "id": 2, "updatedAt": "2024-09-03T00:00:00+09:00" } ]' | dasel -r json 'reverse()' [ { "id": 2, "updatedAt": "2024-09-03T00:00:00+09:00" }, { "id": 1, "updatedAt": "2024-09-04T00:00:00+09:00" } ]
Describe alternatives you've considered nothing.
Additional context sortBy is referred to in the discussion here.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is your feature request related to a problem? Please describe.
I want to sort list of objects by key.
And, I want to reverse list.
Describe the solution you'd like
sortBy:
reverse:
Describe alternatives you've considered
nothing.
Additional context
sortBy
is referred to in the discussion here.The text was updated successfully, but these errors were encountered: