The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
Row

Worksheet.Sort Method

Name Parameters Description
Sort(CellRange) range

Sorts the specified range by the first column in ascending order.

Sort(CellRange, Boolean) range, ascending

Sorts the specified range by the first column.

Sort(CellRange, IEnumerable<SortField>) range, sortFields

Sorts the specified range by multiple columns.

Sort(CellRange, Int32) range, columnOffset

Sorts the specified range by the specified column in ascending order.

Sort(CellRange, Int32, Boolean) range, columnOffset, ascending

Sorts the specified range by the specified column.

Sort(CellRange, Int32, IComparer<CellValue>) range, columnOffset, comparer

Sorts the specified range by the specified column using the specified comparer.