I have some id's stored in array locationIds
that is already sorted in a way I want it. But with the below codes, I am getting the response in sails default sorted order.
var locationIds = []; // pushing id's in it
Locations.find({ id: locationIds }).paginate({ page: page, limit: limit }).exec(function(err, sortedLocations) {
// need the response in the same order as in locationIds
});
Is there any way that I can disable this default sorting or any other possibilities? Need help with this, thanks in advance.