Lexicographic sort Digraph solutions to fix