FIX: Dijkstra did not sort Joins at each iteration