06-08-2012 06:49 PM
Hey all, I need to use the compareTo() method to compare two strings and return a + or - value based on which one comes first alphabetically. This all works well in java using compareToIgnoreCase() but this is not build into the BB code, how can I implement this in Blackberry? I am sure there must be something built in for something so essential. As always, thanks guys.
06-08-2012 07:10 PM
Just use: a.toLowerCase(0.compareTo(b.toLowerCase());
Or use the StringUtil: