Since we are using KA infrastructure for the questions, do you still want to maintain a Questions API? If you do, you might at least take it out of the core now that we have the concept of an "add on"…
When items with the same priority are inserted, they are not popped in the order that they were inserted. The order seems to be the reverse (LIFO instead of FIFO). Python's heapq and sorted do maintai…