i have an Array List with Following values
ArrayList [Admin,Readonly,CSR,adminuser,user,customer]
when i used
Collections.s
This'll do,
Collections.sort(yourList, String.CASE_INSENSITIVE_ORDER);
this is i have tried,
ArrayList myList=new ArrayList();
Collections.addAll(myList,"Admin","Readonly","CSR","adminuser","user","customer");
System.out.println(myList);
Collections.sort(myList, String.CASE_INSENSITIVE_ORDER);
System.out.println(myList);
the following output i got,
[Admin, Readonly, CSR, adminuser, user, customer]
[Admin, adminuser, CSR, customer, Readonly, user]