refactored DistanceToPinOrderer