[Table of Contents] [docx version]

SpreadsheetML Reference Material - Table of Contents

sortState (Sort State)

This collection preserves the AutoFilter sort state.

[Example: This example shows a sort which is case-sensitive, descending sort. While the range of data to sort is B4:E8, the range to sort by is B4:B8.

<sortState caseSensitive="1" ref="B4:E8">
<
sortCondition descending="1" ref="B4:B8"/>
</sortState>

end example]

Parent Elements

autoFilter3.3.1.1); queryTableRefresh3.12.6); table3.5.1.2); worksheet3.3.1.96)

 

Child Elements

Subclause

extLst (Future Feature Data Storage Area)

§3.2.10

sortCondition (Sort Condition)

§3.3.1.88

 

Attributes

Description

caseSensitive (Case Sensitive)

Flag indicating whether or not the sort is case-sensitive.

 

The possible values for this attribute are defined by the XML Schema boolean datatype.

columnSort (Sort by Columns)

Flag indicating whether or not to sort by columns. Only applies to ranges that don’t have AutoFilter applied.

 

The possible values for this attribute are defined by the XML Schema boolean datatype.

ref (Sort Range)

The whole range of data to sort (not just the sort-by column).

 

The possible values for this attribute are defined by the ST_Ref simple type (§3.18.64).

sortMethod (Sort Method)

Strokes or PinYin sort method. Applies only to these application UI languages:

Chinese Simplified

Chinese Traditional

Japanese

For these languages, alternate sort methods can be selected, affecting how the data is sorted.

 

The possible values for this attribute are defined by the ST_SortMethod simple type (§3.18.75).

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_SortState">

   <sequence>

   <element name="sortCondition" minOccurs="0" maxOccurs="64" type="CT_SortCondition"/>

   <element name="extLst" type="CT_ExtensionList" minOccurs="0" maxOccurs="1"/>

   </sequence>

   <attribute name="columnSort" type="xsd:boolean" use="optional" default="false"/>

   <attribute name="caseSensitive" type="xsd:boolean" use="optional" default="false"/>

   <attribute name="sortMethod" type="ST_SortMethod" use="optional" default="none"/>

   <attribute name="ref" type="ST_Ref" use="required"/>

</complexType>