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.
The overall mission is to change the world. When you've done that, then you can read this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!