if (getSortAscending() == null) setSortAscending(new TreeitemComparator(this, true, true)); if (getSortDescending() == null) setSortDescending(new TreeitemComparator(this, false, true)); } else if (!Strings.isBlank(type) && type.startsWith("auto")) { _isCustomAscComparator = false; if (getSortDescending() == null || !_isCustomDscComparator) { if (index < 0) setSortDescending(new FieldComparator(name, false));
found = !"natural".equals(dir); if (!found) { cmpr = cast(col.getSortDescending()); dir = smodel.getSortDirection(cmpr); found = !"natural".equals(dir);