Sort Excel Ranges in C#
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.
Discover How to Use Named Ranges in Excel with IronXL for More Efficient Data Management!