completed.setComparator(new GeneralComparator("getPercentCompleted"));
completed.setComparator(new Comparator() {
public int compare(Object o1, Object o2) {
double completed1 = 100;
double completed2 = 100;
SharedFile shared_file1 = (SharedFile)o1;
SharedFile shared_file2 = (SharedFile)o2;
if(!shared_file1.isCompleted())
completed1 = ((PartialFile)shared_file1).getPercentCompleted();
if(!shared_file2.isCompleted())
completed2 = ((PartialFile)shared_file2).getPercentCompleted();
if(completed1 == completed2) return 0;
if(completed1 > completed2) return 1;
return -1;
}