SSortOrderSSortOrder*
*Contents  *Index  *Topic Contents
*Previous Topic: SRowSet
*Next Topic: SSortOrderSet

SSortOrder

typedef struct _SSortOrder { 
    ULONG ulPropTag;
    ULONG ulOrder;
    } SSortOrder, FAR *LPSSortOrder; 

Defines how to sort rows of a table, describing the column to use as the sort key and the direction of the sort.

ulPropTag
Property tag identifying the sort key or, for a categorized sort, the category column.
ulOrder
Order in which the data is to be sorted. Possible values are:
TABLE_SORT_ASCEND The table should be sorted in ascending order.
TABLE_SORT_COMBINE The sort operation should create a category that combines the property identified as the sort key column in the ulPropTag member with the sort key column specified in the previous SSortOrder structure.
TABLE_SORT_COMBINE can only be used when the SSortOrder structure is being used as an entry in an SSortOrderSet structure to specify multiple sort orders for a categorized sort. TABLE_SORT_COMBINE cannot be used in the first SSortOrder structure in an SSortOrderSet structure.
TABLE_SORT_DESCEND The table should be sorted in descending order.

Back to top


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.