try {
if(elm instanceof Comparable) {
Collections.sort((List<Comparable>) this.rows);
}
else if(elm instanceof IPropertyValueProvider) {
Collections.sort(this.rows, new SortColumnComparator(sort.getPrimarySortColumn()));
}
else
throw new RuntimeException("List elements are not comparable");
}
catch(final RuntimeException e) {