Is it possible using one of the available sort options to sort a json response?
Example json:
{"data":[{"name":"John","age":30,"car":null,"messages":[{"message1":"hello","message3":"out of order","message2":"goodbye"}]},{"name":"Allen","age":30,"car":null,"messages":[{"message1":"hello","message3":"out of order","message2":"goodbye"}]}]}
I'd like to sort first on data[]:name
and then on data[]:name:messages
Example json:
{"data":[{"name":"John","age":30,"car":null,"messages":[{"message1":"hello","message3":"out of order","message2":"goodbye"}]},{"name":"Allen","age":30,"car":null,"messages":[{"message1":"hello","message3":"out of order","message2":"goodbye"}]}]}
I'd like to sort first on data[]:name
and then on data[]:name:messages
Comment