The ADS_SORTKEY structure specifies information about sorting a query.
typedef struct _ads_sortkey { LPWSTR pszAttrName; LPWSTR pszReserved; BOOLEAN fReverseOrder; } ADS_SORTKEY, *PADS_SORTKEY;