Platform SDK: Active Directory, ADSI, and Directory Services

Sorting

A client can request a server to sort the result set. You can specify:

When you specify sort order, you should try to use one of the indexed attributes. Otherwise, the server must calculate a complete result set before sending it to the client. This is true even if you have requested a paged search and specified a page size.

Note  Not all directory servers support multiple attribute sorts or sort order.