I'd like to use the PriorityQueue but in my case the values I need to use for ordering are dates and I need the oldest one first. This means I can't use PriorityQueue because the order would be reversed.
In my opinion PriorityQueue should accept an optional comparator callback to decide the order.
I'd like to use the PriorityQueue but in my case the values I need to use for ordering are dates and I need the oldest one first. This means I can't use PriorityQueue because the order would be reversed.
In my opinion PriorityQueue should accept an optional comparator callback to decide the order.