Sort nodes by name as tie-breaker when # of links is the same.