Sort sub-paths before 'reorienting' during boolean calculations