| Platform SDK: Active Directory, ADSI, and Directory Services | 
The LDAPSortKey structure stores sorting criteria for use by sort controls.
typedef struct ldapsortkey 
{
  PWCHAR  sk_attrtype;
  PWCHAR  sk_matchruleoid;
  BOOLEAN sk_reverseorder;
} LDAPSortKey, *PLDAPSortKey;
The ldap_create_sort_control and ldap_search_init_page functions use this structure to specify how results should be sorted before being returned to the client.
  Windows NT/2000: Requires Windows NT 4.0 SP4 or later.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in Winldap.h.
  Unicode: Declared as Unicode and ANSI structures.
Data Structures, ldap_create_sort_control, ldap_search_init_page, Using Controls