fixed criteria order generating database query

Hi, I fixed error in request, if you have Model.find().where().sort().limit().