An article (in the interests of full disclosure, one I wrote) about sorting arrays of objects by multiple properties: How to Use Supercharged Sorts in JavaScript
I have always found the zero case to be the most interesting - there’s a LOT you can do with that! 