- // Handles comparison between items starting with "-", returns 0 for all others.
- public static int compareWithoutLeadingDash(final String a, final String b, final Comparator c, int version) {
+ public static String withoutDash(final String a) {
+ return a.replace("-", "").replace("þ", "th").replace("Þ", "Th");
+ }
+
+ // Handles comparison between items containing "-".
+ // Also replaces other problematic cases like "thorn".
+ public static int compareWithoutDash(final String a, final String b, final Comparator<Object> c, int version) {