A recursive sort and filter for a nested object
If you have control over the format of the object you're filtering and sorting, then you should definitely consider reformatting it into something more palatable.
Using localeCompare() to sort Date objects seems funky. You can do something like this:

return new Date(tempB).getTime() - new Date(tempA).getTime()

If you don't know how deep the object is nested, then recursion is a pretty solid way to go. If you want to try a more hackish solution, you could also use JSON.stringify() and regex to extract the date fields from deeply nested objects (not suggested). Please provide more examples of valid objects to sort though, your code seems like it would break on certain instances.