# SortingType complexType

Contains the sorting specifications and sort options used in the most recent sort.

## Type Information

Namespace | urn:schemas-microsoft-com:office:excel
Schema name | XML Spreadsheet 2000

## Elements and Attributes

### Child Elements

Element | Description
--- | ---
Sort | Specifies a range of cells or the name of a range to sort, or whether a query table has been sorted.
Descending | Specifies the direction of the sort.
LeftToRight | Specifies whether a sort is done left to right by column or top to bottom by row, or whether a workbook or worksheet is printed left to right.
CaseSensitive | Specifies whether sorting is case-sensitive.
AlternateMethod | Specifies whether special sorting methods are used to sort a range.

### Attributes

None.

## Definition

    <xsd:complexType name="SortingType" >
      <xsd:sequence>
        <xsd:sequence maxOccurs="3">
          <xsd:element name="Sort" type="xsd:string">
          </xsd:element>
          <xsd:element name="Descending" minOccurs="0">
          </xsd:element>
        </xsd:sequence>
        <xsd:element name="LeftToRight" minOccurs="0">
        </xsd:element>
        <xsd:element name="CaseSensitive" minOccurs="0">
        </xsd:element>
        <xsd:element name="AlternateMethod" minOccurs="0">
        </xsd:element>
      </xsd:sequence>
    </xsd:complexType>

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp