karlseguin/the-little-mongodb-book

A copyediting trifle regarding SORT

netaisllc opened this issue · 1 comments

A comment in an example is, IMHO, in error. The current content reads:

//by vampire name then vampire kills:
db.unicorns.find().sort({name: 1, vampires: -1})

But I believe the "name" being sorted on is the Unicorn's name and not the Vampire's.

Fixed, thanks.