Sort: Support deep paths.