Sorting Search Results
Summary
In this chapter, we introduced the basic concepts of searching the directory. We discussed how to specify the location in the directory to start the query, and the depth in the tree that the search may traverse.
We then dug deeply into LDAP query filters, showing the query syntax as well as the rules governing how comparison values are specified for the various attribute syntaxes supported by Active Directory and ADAM. We also showed a few tricks for doing bitwise comparisons and using ANR.
We discussed how to execute a query and how to enumerate the results, limiting the number returned as needed. We also discussed how paging enables Active Directory and ADAM to support returning large numbers of search results without compromising the directory.
We concluded with a discussion of sorting results on the server.