It gets this branch when `index >= folders1 && index >= folders2`. What we can do is:
```
if (index < folders1 && index < folders2) {
    return entryName1.toLocaleLowerCase().localeCompare(entryName2.toLocaleLowerCase());
} else if (index >= folders1 && index >= folders2) {
    return FileUtils.compareFilenames(entryName1, entryName2);
}
return (index >= folders1 && index < folder2) ? 1 : -1;
```