}
// first sort them, with an "best" ordering among items that are the same according
// to the collator
Set preferenceSorting = new TreeSet(new MultiComparator(new Comparator[]{
comparator, new PreferenceComparator(Collator.getInstance(locale))}));
for (UnicodeSetIterator it = new UnicodeSetIterator(exemplars); it.next();) {
preferenceSorting.add(it.getString());
}