i has a list of arrays with the following values
ArrayList [Admin,Readonly,CSR,adminuser,user,customer]
when i used
Collections.sort(ArrayList)
I get the following result
[Admin,CSR,Readonly,adminuser,customer,user]
according to the Java doc, the above results are correct, but my expectation is (sorting whatever the case (upper / lower case)
[Admin,adminuser,CSR,customer,Readonly,user]
provide help on how to sort, regardless of the case in java, is there any other method available
Note: I will do an Automate test to check the sort order in the web table.
considers
Prabu
java sorting arrays
Prabu
source share