Fix sort order for Mongoose 3
Fix sort order for Mongoose 3