View – display content in arguments array order


I render a view with contextual filters and pass an array of nids to it, which works great.

drupal_view ('some_articles', 'block_1', nidArguments )

Problem is that my view doesn’t render these nodes in the same order like the nid arguments contained in the array.

I can’t sort via the view’s sort criteria, since I get these nids from different sources — some come from the node’s field and I don’t want any sorting whatsoever, while the rest come from the DB and I already sort some of them myself with a query.

Even if I remove all sort criteria, the view still sorts them by “authored on (asc)” and doesn’t display the nodes in the order of the arguments array. Any ideas? (preferably without the use of extra modules).