Changeset 6126 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2013-08-09T18:00:18+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/AlphanumComparator.java
r6070 r6126 23 23 * 24 24 */ 25 import java.text.Collator; 25 26 import java.util.Comparator; 27 import java.util.Locale; 26 28 27 29 /** … … 33 35 * 34 36 * This is an updated version with enhancements made by Daniel Migowski, Andre 35 * Bogus, and David Koelle .37 * Bogus, and David Koelle and others. 36 38 * 37 39 */ … … 107 109 } 108 110 } else { 109 result = thisChunk.compareTo(thatChunk); 111 // Instantiate the collator 112 Collator compareOperator = Collator.getInstance(Locale.getDefault()); 113 // Compare regardless of accented letters 114 compareOperator.setStrength(Collator.SECONDARY); 115 result = compareOperator.compare(thisChunk, thatChunk); 110 116 } 111 117
Note:
See TracChangeset
for help on using the changeset viewer.