
The statement is used to sort the array item in a container. The optional key field can contain any of the escape sequences defined in Escape Sequences.
Each item in the array establishes a sort test value as follows:
Assuming the following container array in obj:
"genres" : [
{
"name" : "rock"
},
"blues",
{
"name" : "classical"
}
]executing:
Sort container array 'obj.genres' key 'name'
will result in:
"genres" : [
"blues",
{
"name" : "classical"
},
{
"name" : "rock"
}
]