Posts returned by tag are not in correct order

Bug #836143 reported by Baggers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pressly
Fix Released
Medium
Baggers

Bug Description

If you request posts by tag e.g:
blog["python"]
..the posts returned will not be ordered from newest to oldest

Revision history for this message
Baggers (chris-bagley) wrote :

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.

Revision history for this message
Baggers (chris-bagley) wrote :

Will replace unordered dict on WPTag with list

Changed in pressly:
assignee: nobody → Baggers (chris-bagley)
status: New → Confirmed
Revision history for this message
Baggers (chris-bagley) wrote :

Dict replaced with list.
No longer get order issue

Changed in pressly:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.