Promise has no method 'sort'
I am using Mongoose with Bluebird and am hitting an Error when using a query that includes a sort on a time stamp. I am trying to retrieve only the most recent entry. The query works when using the built in Promises. Any ideas? Thanks! var Promise = require("bluebird"), mongoose = require('mongoose'); var Item = Promise.promisifyAll(mongoose.model("Item")); Promise.promisifyAll(Item.prototype); var connect = function () { var options = { server: { socketOptions: { keepAlive: 1 } } }; var mongoUrl = "mongodb://" + config.mongo.host + ":" + config.mongo.port + "/" + config.mongo.db; mongoose