Currently, the code is using the Path compare and not the specified comparator ` int compare = relativePath.applyAsInt(Path::compareTo);` Should be replaced with ` int compare = relativePath.applyAsInt(this.pathComparator::compare);`
Currently, the code is using the Path compare and not the specified comparator
int compare = relativePath.applyAsInt(Path::compareTo);Should be replaced with
int compare = relativePath.applyAsInt(this.pathComparator::compare);