From 655a1b4a77c4a1e00799ac1e18914344a0f81e7e Mon Sep 17 00:00:00 2001 From: "taylor.smock" Date: Tue, 13 Feb 2024 15:04:22 +0000 Subject: [PATCH] See #23468: Improve performance in the validator tree window Add missing `-` character. git-svn-id: https://josm.openstreetmap.de/svn/trunk@18978 0c6e7542-c601-0410-84e7-c038aed88b3b --- src/org/openstreetmap/josm/tools/AlphanumComparator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/openstreetmap/josm/tools/AlphanumComparator.java b/src/org/openstreetmap/josm/tools/AlphanumComparator.java index 3b0b7784d1c..46bf6660f9f 100644 --- a/src/org/openstreetmap/josm/tools/AlphanumComparator.java +++ b/src/org/openstreetmap/josm/tools/AlphanumComparator.java @@ -67,7 +67,7 @@ public final class AlphanumComparator implements Comparator, Serializabl // We have 37 order overrides for symbols; ASCII tables has control characters through 31. 32-47 are symbols. // After the symbols, we have 0-9, and then aA-zZ. // The character order - final String order = " \r\t\n\f\u000b_,;:!?/.`^~'\"()[]{}@$*\\&#%+<=>|0123456789aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ"; + final String order = " \r\t\n\f\u000b-_,;:!?/.`^~'\"()[]{}@$*\\&#%+<=>|0123456789aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ"; for (int i = 0; i < order.length(); i++) { char c = order.charAt(i); ASCII_MAPPING[c] = (byte) (i + 1);