I need to compare data retrieved from table and a list :
// first click
// get list of data
originalList = getValue(columnX);
// copy
List<String> copy1 = new ArrayList<String>(originalList );
//sort
Collections.sort(copy1);
System.out.println("copy" + copy1);
// verify
assertEquals(copy1, originalList); //this is OK
//second click is done here
// copy
List<String> copy2 = new ArrayList<String>(originalList );
// sort
Collections.sort(copy2 );
System.out.println("copy2" + copy2 );=>copy2 give same values as copy1!!!it should not
// verify assertEquals(copy2, originalList); =>wrong