Sorting LDAP result

hi all,

i’m searching a ldap dir with the jndi.

the returned result is unsorted.

[…]

filter="objectclass=person";

System.out.println("used filter for ldapsearch: " + filter);

NamingEnumeration answer = directory.search(sSearchBase, filter, ctls);

[…]

i would like to do some server side sorting like the command line parameter -S of ldapsearch does.

[…]

D:\Dokumente und Einstellungen\odenthal>ldapsearch -S sn -h server-ip "objectclass

=person"

[…]

is it right that the SortControls do not work in JDK 1.3.1???

Need some help with that - btw it’s like always - as URGENT as possible :slight_smile:

so far and tia

alex