Search for all children of the ou=People,dc=example,dc=com
subtree. The resulting entries are sorted by the server in ascending order by
sn and then in descending order by
givenName:
$ bin/ldapsearch --baseDN ou=People,dc=example,dc=com \
--searchScope sub --sortOrder sn,-givenName '(objectclass=*)'