在 C# 中排序 Excel 范围

Arranging data in alphabetical or value order makes human analysis of data feasible in Microsoft Excel. IronXL makes sorting Excel Columns, Rows, and Ranges extremely simple in C# and VB.NET.

Use the SortAscending or SortDescending methods on the selected range or column to apply sorting in the appropriate order. The SortByColumn method, however, requires two parameters: The first input is the column intended to be sorted and the second input is the sorting order.

Learn to Use Named Ranges in Excel with C#

准备开始了吗?
Nuget 下载 1,686,155 | 版本: 2025.11 刚刚发布