I have entries in the shape of:
{
outerField1 : {
"innerField" : 1
}
outerField2 : "blah"
}
I'd like to sort them in descending order based on the innerField, but my understanding of the sort function is limited to knowing only how to sort based on the outer fields. How would I sort a mongo query based on an inner field?