I've defined a priority queue like so
import scala.collection.mutable.PriorityQueue
...
val queue = new PriorityQueue[(Int,Int)]()
I want to use this ordering:
If we are comparing two items A and B in the queue, A is bigger than B if the first element of its (Int,Int)
tuple is larger than B's. If they're the same, then A is bigger than B if the second element of its (Int,Int)
tuple is smaller than B's.
How do I define this kind of ordering?