I need a priority queue, I guess in the framework, CHMutableArrayHeap and CHBinaryHeap can do the job, right?
However, if i send objects with identical priority to the queue, both CHMutableArrayHeap and CHBinaryHeap cannot maintain their adding orders.
for example, I have objects obj1 to obj10, their priorities are identical. After I add those 10 objects to the queue one by one from 1 to 10, the positions of them are not the same as the adding order, obj4 may come in front of obj1.
So, Quinn, what do you suggest if I want a priority queue keeping the adding order if priority is the same?
Thanks