2.5.242 SortCond12

The SortCond12 structure specifies the sort conditions.


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

A

sortOn

reserved

rfx (16 bytes)

...

...

...

condData (variable)

...

cchSt

stSslist (variable)

...

A - fSortDes (1 bit): A bit that specifies whether to sort in descending order.

sortOn (4 bits): An unsigned integer that specifies the kind of sort to perform. MUST be a value listed in the Sort On Value column in the table for condData

reserved (11 bits): MUST be zero, and MUST be ignored.

rfx (16 bytes): An RFX that specifies the sort range of cells on the sheet.

condData (variable): A structure that specifies the conditional data information. The data type of this structure depends on the value of the sortOn field and MUST be a value from the following table:

Sort On Value

Data Type

0x0

CondDataValue

0x1

CondDataValue

0x2

CondDataValue

0x3

CFFlag

cchSt (4 bytes): A signed integer that specifies the character count in stSslist. MUST be greater than or equal to zero. MUST be zero and ignored if sortOn is not equal to zero.

stSslist (variable): An XLUnicodeStringNoCch that specifies the custom sort list string. It exists only if cchSt is greater than zero.