# Sorting element

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

## Usage

    <Sorting />

## Element Information

Element type | SortingType
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:element name="Sorting" type="SortingType" >
    </xsd:element>

©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