2.2.1.8 CSort

The CSort structure identifies a column, direction, and locale to sort by.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

pidColumn

dwOrder

locale

pidColumn (4 bytes): A 32-bit unsigned integer. This is the index in CPidMapper for the property to sort by.

dwOrder (4 bytes): A 32-bit unsigned integer. MUST be one of the following values, specifying how to sort based on the column.

Value

Meaning

QUERY_SORTASCEND

0x00000000

The rows are to be sorted in ascending order based on the values in the column specified.

QUERY_SORTDESCEND

0x00000001

The rows are to be sorted in descending order based on the values in the column specified.

locale (4 bytes): A 32-bit unsigned integer indicating the locale (as specified in [MS-LCID]) of the column. The locale determines the sorting rules to use when sorting textual values. An indexing service SHOULD use the appropriate operating system facilities to do this.