Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
Row

Worksheet.Sort Method

Name Parameters Description
Sort(Range, Boolean) range, ascending Sorts the specified range by the first column.
Sort(Range, IEnumerable<SortField>) range, sortFields Sorts the specified range by multiple columns.
Sort(Range, Int32, Boolean) range, columnOffset, ascending Sorts the specified range by the specified column.
Sort(Range, Int32, IComparer<CellValue>) range, columnOffset, comparer Sorts the specified range by the specified column using the specified comparer.
Sort(Range, Int32) range, columnOffset Sorts the specified range by the specified column in ascending order.
Sort(Range) range Sorts the specified range by the first column in ascending order.