Sorting
We now turn our attention to sorting the results returned from the server. As you may have noticed, the LDAP server does not always return results in a natural order. Human beings generally prefer to have information ordered so that it can be reviewed or browsed easily. The LDAP SDK provides two methods for sorting results: client-side sorting and server-side sorting. Server-side sorting is an LDAPv3 enhancement and is supported on many servers, including Netscape Directory Server. We will cover server-side sorting in detail in Chapter 16. Client-side sorting is the option to retrieve the data and sort it on the client machine before working with the results.
Client-side sorting has a couple of restrictions. First, the attributes on which ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access