sort edges in advance

This makes the PathFinder keep riding before it tries to transfer.
This also eliminates most of the variance in times caused by hash
randomization.