if (columnID == SWTPreferences.SEARCH_FILESIZE_COLUMN_ID)
return Misc.compareAllObjects(object1, object2,
"getFileSize", order);
if (columnID == SWTPreferences.SEARCH_FILEQUALITY_COLUMN_ID) {
FileQuality q1 = object1.getFileQuality();
FileQuality q2 = object2.getFileQuality();
int result = 0;
if (q1.getAsInt() > q2.getAsInt())
result = 1;
else if (q1.getAsInt() < q2.getAsInt())
result = -1;
if (order)
return result;
return Misc.reverse(result);
}