title: Dequeue a Priority Queue
body: <p>Elements dequeued from a priority queue follow the rule that:</p>
  
  <p>Priority[i] >= Priority[i - 1]</p>
  
  <p>But if many elements have the same priority, in what order should they be dequeued?
  Should the element that was enqueued first be dequeued first or doesn't it matter?
  I know this most likely depends on implementation and usage, but I'm looking for the textbook priority queue answer.</p>