Ordering problem edges for hints.