Closed ejohnson44 closed 11 years ago
It puts them at the beginning, which is why the
I'd like to see if there's a better way to write this comparator...those string matches are really slow, and I don't like the multiple return statements.
The multiple returns prevent it from doing unnecessary comparisons - I tried to make it compare things as little as possible so that it wouldn't be too time consuming.
I could rewrite it to convert to character arrays and manually compare things, but I think that is essentially what the string compare does anyways.
@theJenix What does Elizabeth need to do to get the ok from you?
Doesn't String's built in compareTo function do this? What does it do with special characters?