Skip to content

Commit 68b816d

Browse files
committed
Merge pull request processing#317 from SpecLad/comparator
Make IndexWriter.Alphabetizer conform to the Comparator requirements
2 parents f6defa9 + 3b10013 commit 68b816d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java_generate/ReferenceGenerator/src/writers/IndexWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public int compare(String o1, String o2) {
3030
else if( inside2.matches( "[a-zA-Z0-9 ]+" ) && ! inside1.matches("[a-zA-Z0-9 ]+") )
3131
{
3232
// if only the first is a symbol
33-
return 0;
33+
return -1;
3434
}
3535

3636
// compare whole strings, starting with words

0 commit comments

Comments
 (0)