return sortAscending ? result : -result; }
                public int compare(Object oa, Object ob) {                    LdapNamedEntry a = (LdapNamedEntry) oa;                    LdapNamedEntry b = (LdapNamedEntry) ob;                    int result = 0;                    if (byName)                        result = a.getName().compareToIgnoreCase(b.getName());                    else {                        String sa = a.getAttr(sortAttr);                        String sb = b.getAttr(sortAttr);                        if (sa == null) sa = "";                        if (sb == null) sb = "";                        result = sa.compareToIgnoreCase(sb);                    }                    return sortAscending ? result : -result;                }