/** Sets the ascending sorter with the class name, or null for * no sorter for the ascending order. * @since 5.0.6 */ public void setSortAscending(String clsnm) throws ClassNotFoundException, InstantiationException, IllegalAccessException { if (!Strings.isBlank(clsnm) && clsnm.startsWith("client") && !_sortAscNm.equals(clsnm)) { _sortAscNm = clsnm; smartUpdate("sortAscending", clsnm); } else setSortAscending(toComparator(clsnm)); }
if (type.startsWith("client")) { try { setSortAscending(type); setSortDescending(type); } catch (Throwable ex) { setSortAscending(new TreeitemComparator(this, true, true)); if (getSortDescending() == null) setSortDescending(new TreeitemComparator(this, false, true)); if (getSortAscending() == null || !_isCustomAscComparator) { if (index < 0) setSortAscending(new FieldComparator(name, true)); else setSortAscending(new ArrayComparator(index, true)); _isCustomAscComparator = false; setSortAscending((Comparator) null); setSortDescending((Comparator) null);