ldap_sort_entries(by DN) -> parent first