RosettaCodeData/Task/Sort-an-array-of-composite-structures/Jq/sort-an-array-of-composite-structures-2.jq
2017-09-25 22:28:19 +02: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 )