public static List sortItems(Collection collection,Locale locale){
  List sorted=Collections.EMPTY_LIST;
  if ((collection != null) && !collection.isEmpty()) {
    sorted=new ArrayList(collection);
    Collator collator=Collator.getInstance(locale);
    Collections.sort(sorted,collator);
  }
  return sorted;
}

public static List sortItems ( Collection collection , Locale locale ) { List sorted = Collections . EMPTY_LIST ; if ( ( collection != null ) && ! collection . isEmpty ( ) ) { sorted = new ArrayList ( collection ) ; Collator collator = Collator . getInstance ( locale ) ; Collections . sort ( sorted , collator ) ; } return sorted ; }
sorts items in a set .
