Search Results for

    Show / Hide Table of Contents

    Class SortOrder

    Represents sorting order

    Inheritance
    System.Object
    SortOrder
    Namespace: IronXL
    Assembly: IronXL.dll
    Syntax
    public sealed class SortOrder : Enum

    SortOrder sets the direction IronXL orders cells when a range, row, or column is sorted, passed to Range.SortByColumn and the related sort methods. Ascending arranges values from lowest to highest or A to Z, and Descending reverses that to highest first or Z to A. The sort Excel range example shows both directions applied to a worksheet.

    range.SortByColumn(0, SortOrder.Ascending);

    Fields

    Ascending

    A-Z, oldest to newest, smallest to largest

    Declaration
    public const SortOrder Ascending
    Field Value
    Type Description
    SortOrder

    Descending

    Z-A, newest to oldest, largest to smallest

    Declaration
    public const SortOrder Descending
    Field Value
    Type Description
    SortOrder

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget