}
protected void sort(final String column, final boolean ascending) {
Comparator comparator = new Comparator() {
public int compare(Object o1, Object o2) {
CustAccountVO c1 = (CustAccountVO) o1;
CustAccountVO c2 = (CustAccountVO) o2;
if (column == null) {
return 0;
}
if (column.equals("custNumber")) {
return ascending
? c1.getCustNumber().compareTo(c2.getCustNumber())
: c2.getCustNumber().compareTo(c1.getCustNumber());
/* } else if (column.equals("customerName")) {
return ascending
? c1.getCustomerName().compareTo(c2.getCustomerName())
: c2.getCustomerName().compareTo(c1.getCustomerName()); */
} else {