mongoid/mongoid — Issue #1397: desc(:_id) != desc("_id")
Author: gurgeous
Created: 2011-11-01 22:19:17+00:00
State: open

I'm using Integer ids. Strange:

>> House.desc("_id").first.id
25583
>> House.desc(:_id).first.id
1

My guess is that the default sort for Mongoid documents is getting correctly overridden in the first case, but not in the second due to the symbol vs string thing. Just a guess.