Tom Zeller
Apr 21, 2022
...
Output may be sorted using jq or xq (part of yq).
For To sort JSON : ... | jq 'walk( if type == "array" then sort else . end )'
... | jq 'walk( if type == "array" then sort else . end )'
For To sort SAML : ... | xq -x 'walk( if type == "array" then sort else . end )'
... | xq -x 'walk( if type == "array" then sort else . end )'