I have code like this :
// inq is array of id
var inq = ["002216", "000018", "000197"];
var filterExt = { where: { id: { inq: inq } };
Radio.find(filterExt, function(err, results){
if(err) cb(err);
else {
// results's index is always following "id" order
cb(null, results);
}
});
My expected results is the array of results are have same order like "inq". But the results order always following "id" order. Is there any way to get same results order with inq order?
Thanks.