Possible Duplicate:
How to properly sort upper and lowercase Strings in Array in Android?
I have to sort subset of CLI arguments alphabetically. So, to sort subset the following code is used:
// Ignore args[0], sort the rest
Arrays.sort(args, 1, args.length);
And to sort ignoring case, I have to use some sort of comparator object. To sort subset with comparator, there is the following method signature:
Arrays.sort(array, from, to, comp);
Can it be done without creating comparator object on separate line, and include it in the Arrays.sort() signature (i.e. neat and understandable enough)?