private List<ValidationResult> orderedList(Collection<ValidationResult> results){
  List<ValidationResult> resultList=new ArrayList<>(results);
  Collections.sort(resultList);
  return resultList;
}

private List < ValidationResult > orderedList ( Collection < ValidationResult > results ) { List < ValidationResult > resultList = new ArrayList < > ( results ) ; Collections . sort ( resultList ) ; return resultList ; }
returns a naturally ordered list of validationresults . < p > when comparing two collections , this assures that all the items are in the same order for comparison . it also means that when there are different values for the same period / rule / source , etc . , the results are more likely to be in the same order to make it easier to see the difference . < p > by making this a list instead of , say a treeset , duplicate values ( if any should exist by mistake ! ) are preserved .
