1 2 3 4 5 6 7 8 9
t = db.objid3; t.drop(); t.save( { a : "bob" , _id : 517 } ); for ( var k in t.findOne() ){ assert.eq( k , "_id" , "keys out of order" ); break; }