Yes I know I'm filing and answering my own bugs. But I'm getting used to the bug tracking system and also this keeps it all well documented.
As for the bug, the reason is that the library uses a dict to remove duplication of post_ids, this is unordered so the posts are returned in a random order.
The solution will be use use a list and check for the post id in the list or an ordered dict.
Yes I know I'm filing and answering my own bugs. But I'm getting used to the bug tracking system and also this keeps it all well documented.
As for the bug, the reason is that the library uses a dict to remove duplication of post_ids, this is unordered so the posts are returned in a random order.
The solution will be use use a list and check for the post id in the list or an ordered dict.