Same priority items in a priority queue
Hello all,
I am writing a project that uses the PriorityQueue class to sort patients according to their emergency level.
The more urgent is a patient's condition, the higher the priority (Priority 1 = Very Urgent. Priority 10 = Not urgent).
However, there are many patients with the same priority and I would like to process them according to a first-in first-out scheme.
The PriorityQueue class doesn't seem to follow that scheme naturally.
Does anyone have an idea how to solve this problem?
Thanks in advance,
Nader

