if (getSortAscending() == null) setSortAscending(new TreeitemComparator(this, true, true)); if (getSortDescending() == null) if ((index = Integer.parseInt(name)) < 0) throw new IllegalArgumentException("Nonnegative number is required: " + name); if (getSortAscending() == null || !_isCustomAscComparator) { if (index < 0) setSortAscending(new FieldComparator(name, true));
col.setSortDirection("natural"); } else { Comparator<Object> cmpr = cast(col.getSortAscending()); String dir = smodel.getSortDirection(cmpr); found = !"natural".equals(dir);