Collections.sort(fileItems, new Comparator<FileItem>() {
public int compare(FileItem arg0, FileItem arg1) {
return arg0.getFieldName().compareTo(arg1.getFieldName());
}
});
Collections.sort(fileItems, new Comparator<FileItem>() {
public int compare(FileItem arg0, FileItem arg1) {
return arg0.getFieldName().compareTo(arg1.getFieldName());
}
});