I have an array of objects with nested array objects.
[
{
"neighborhoods": [
{
"origin": "Kenwood",
"destination": "Portage Bay"
}
]
},
{
"neighborhoods": [
{
"origin": "First Hill",
"destination": "Denny-Blaine"
}
]
},
{
"neighborhoods": [
{
"origin": "Belltown",
"destination": "Eastlake"
}
]
}
]
I want to sort the objects alphabetically based on the origin value. What is the most efficient way to do this?