Sort json objects by _name_ field
This commit is contained in:
5
tag_sorter.jq
Normal file
5
tag_sorter.jq
Normal file
@@ -0,0 +1,5 @@
|
||||
walk(
|
||||
if type == "object" and has("tags") then
|
||||
.tags |= sort_by(.name)
|
||||
end
|
||||
)
|
||||
Reference in New Issue
Block a user