Version Information
Version Added: Excel

Remarks

The object contains properties to add, count, sort, and remove SortField objects.

Example

Visual Basic for Applications
ActiveWorksheet.SortFields.Add Key:=Range("A1"), Order:=xlDescending ActiveWorksheet.SortFields.Add Key:=Range("B1"), Order:=xlDescending ActiveWorksheet.SortFields.Sort Header:=xlGuess 

See also: