#49 streamline sorting path, get directions consistent