I have an array of two ids:
placeids = [22,14]
Then I have this query:
models.Places.findAll({
where: {
id: {in: [ placeids ]}
}
}).then(function (places) {
response(places).code(200);
}, function (rejectedPromiseError) {
response(rejectedPromiseError).code(401);
});
I want the result to return exact records, the way I have requested them, in my case 22 and then 14.
Sequelize return them, but it orders them in descending. So in my case it returns 14 and 22.
How can I address this?