RosettaCodeData/Task/Sort-an-array-of-composite-structures/Jq/sort-an-array-of-composite-structures-2.jq
2023-07-01 13:44:08 -04:00

6 lines
162 B
Text

# To sort the array:
# example | sort_by(.name)
# To abbreviate the results, we will just show the names after sorting:
example | sort_by(.name) | map( .name )