Euh jai mis un Truc pour bien trié les String propre...
ici : http://lopez.thomas1.free.fr/Java/String.html
ca donne un truc comme ca:
public class Tri_String {
public static void main(String[] args) {
String[] test;
test = args;// pour test on tri un tab passer en parametre
tri(test);
try {
//affichage
System.out.println("Une fois trie :");
for (int i = 0; i < test.length; i++) {
System.out.println(test[i]);
}
} catch (Exception e) {
// TODO: handle exception
System.out.println("Exception d'affichage:" + e.toString());
}
}
/**
*
*/
private static String[] tri(String[] test) {
// TODO Auto-generated method stub
int i = 0;
int t;
String temp;
System.out.println(test.length);
try {
for (i = 0; i < (test.length - 1); i++) {
t = test[i].compareTo(test[i + 1]);
System.out.println("i=" + i);
System.out.println("test" + t);
if (t == 0) {
// égalité
}
if (t < 0) {
// ordre decroissant
} else {
// ordre croissant
System.out.println("Tri exécuter");
temp = test[i];
test[i] = test[i + 1];
test[i + 1] = temp;
tri(test);
}
}
} catch (Exception e) {
// TODO: handle exception
System.out.println("Exception de tri:" + e.toString());
}
return test;
}
}

vive java!!
Syruis