Skip to content

Commit 1aad1af

Browse files
committed
Fix Named.NAME_PATH_COMPARATOR desync with DirectoryPathNode compareTo
Looks like I should have gotten this back in 0ccfae9 but missed it. I guess the optimization work in the prior commits resurfaced this issue.
1 parent 51e94fb commit 1aad1af

File tree

1 file changed

+2
-1
lines changed
  • recaf-core/src/main/java/software/coley/recaf/info

1 file changed

+2
-1
lines changed

recaf-core/src/main/java/software/coley/recaf/info/Named.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package software.coley.recaf.info;
22

33
import jakarta.annotation.Nonnull;
4+
import net.greypanther.natsort.CaseInsensitiveSimpleNaturalComparator;
45
import software.coley.recaf.util.StringUtil;
56

67
import java.util.Comparator;
@@ -39,7 +40,7 @@ else if (directoryPathA.startsWith(directoryPathB))
3940
}
4041

4142
// Fallback to natural string comparison.
42-
return a.compareTo(b);
43+
return CaseInsensitiveSimpleNaturalComparator.getInstance().compare(a, b);
4344
};
4445

4546
/**

0 commit comments

Comments
 (0)