As mentioned I missed to include in the first document. Please find it here
{
“av_id”: “name:second”,
“services”: [
{
“serviceId”: “ABC”,
“serviceType”: “AAA”,
“availability”: “1”
},
{
“serviceId”: “CDE”,
“serviceLocation”: {
“cityName”: “Singapore”,
“countryName”: “Singapore”
},
“serviceType”: “BBB”,
“availability”: “1”
},
{
“serviceId”: “FGH”,
“serviceLocation”: {
“cityName”: “Sydney”,
“countryName”: “Australia”
},
“serviceType”: “CCC”,
“availability”: “1”
}
]
}
Now my priorty is to sort by the serviceId of first document in the ascending order , please let me know this first. (The actual data has services disordered so there is a requirement to order it ) .Thanks.