Retrieving a batch of tweets doesn't return tweets in order


Doing a GET to{ids} with a series of comma-separated tweet IDs in place of “{ids}” returns an array of tweets from the Twitter API. If I send 10, and one of them is protected, then I only get 9 objects in the array back instead of 10 and 1 being null.

Also, the order of the tweets I get back isn’t the same as the order of the tweet IDs I provide in the URL.

Is there any way to fix these two issues?


Having such a flaw in the API makes it difficult to work with, is anyone aware of a way to fix this?