LearnBoost/mongoose — pull request #827 by aheckmann (2012-04-11 23:27:04+00:00)
Title: fix Query#sort support

disallows passing arrays: `sort(['path', 'ascending']) // throws!`
correctly processes objects: `sort({ path: 1 }) // works!`
prevents unhelpful driver error msgs from being thrown

closes #671