jnunemaker/mongomapper — pull request #537 by nigelramsay (2013-08-09 05:31:13+00:00)
Title: demonstrate faulty sort by _id method

The sort method appears to be incorrectly translating an _id parameter to just "id" when it passes it to Mongo.

If you tail the log/test.log file, you see the reference to "_id" being converted into just "id". Because none of the mongo documents have an actual "id" attribute, the documents are unsorted.

I've tried this with both 0.13.0-beta1 and 0.13.0-beta2. It works correctly with 0.12.0.

Attention @cheald