Edit

Share via


Sorting (ADSI)

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

  • Sort order: Either ascending or descending sort order can be specified.
  • Sort attributes: Multiple attributes can be specified in a sort string. For example, sort by Last Name, then First Name.

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.