title: Netscape ldap migration to unboundid
body: <p>What would be the best way to sort LDAPSearch results res by ascending order with unboundid?</p>
  
  <p>Currently, my netscape project has it as follow:</p>
  
  <pre><code>res = ldapConfig.search(ldapConfig.getDepartment(), LDAPConnection.SCOPE_SUB, 
      grpFilter, grpAttrs, false, cons);
  res.sort(new LDAPCompareAttrNames("MY_ATTRIBUTE", true));
  </code></pre>
  
  <p>When upgrading to <code>com.unboundid.ldap.sdk.migrate.ldapjdk.*</code>, <code>LDAPCompareAttrNames()</code> and <code>sort()</code> were the only two methods not supported by the <code>unboundid .migrate.ldapjdk</code> library. </p>
  
  <p>Any input would be greatly appreciated. </p>
  
  <p>Thanks,</p>