public static String[] sortCopy(String[] objects){
  int len=objects.length;
  String[] copy=new String[len];
  System.arraycopy(objects,0,copy,0,len);
  sort(copy);
  return copy;
}

public static String [ ] sortCopy ( String [ ] objects ) { int len = objects . length ; String [ ] copy = new String [ len ] ; System . arraycopy ( objects , 0 , copy , 0 , len ) ; sort ( copy ) ; return copy ; }
sorts an array of strings , returning a new array with the sorted items . the original array is left untouched .
