There is one JDBC-LDAP bridge availble from OctetString, which helps you access an LDAP server just like any RDBMS database. LDAP JDBC Bridge But, I am not sure if it supports "ORDER BY" clause. Sometime back, when I was trying, I found that it had some limitations in using the WHERE clause. I don't remember what exactly was the issue. Try your luck anyways.
What a show! What atmosphere! What fun! What a tiny ad!
create, convert, edit or print DOC and DOCX in Java