I'm trying to implement the D*-Lite pathfinding algorithm, as described in the 2002 article by Koenig and Likhachev for grid based navgraph.
At this algorithm double-keys are used. It has left and right part. How to correctly compare this keys for sorting in priority queue? Should I compare left parts firstly and compare right only if it is equal? Or should I choose some other way?