se nella hashset ci sono stringhe
Object[] o = set.toArray();
java.util.Arrays.sort(o);