menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SortOrder - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SortOrder

    Specifies the sort order used to arrange items in a data-bound list component.

    Inheritance
    System.Object
    SortOrder
    Namespace: Syncfusion.Blazor.DropDowns
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class SortOrder : Enum
    Remarks

    Sort order can be configured for SfDropDownList, SfComboBox, SfAutoComplete, and other DropDown components that support sorting.

    Examples
    SortOrder order = SortOrder.Ascending;

    Fields

    Ascending

    Sort the data source in ascending (A-Z or lowest-to-highest) order.

    Declaration
    public const SortOrder Ascending
    Field Value
    Type Description
    SortOrder

    Sorts items from lowest to highest defined by comparer.

    Remarks

    Use for alphabetical or numeric order.

    Examples
    SortOrder order = SortOrder.Ascending;

    Descending

    Sort the data source in descending (Z-A or highest-to-lowest) order.

    Declaration
    public const SortOrder Descending
    Field Value
    Type Description
    SortOrder

    Sorts items from highest to lowest defined by comparer.

    Remarks

    Typically used for reverse-alphabetical or descending numeric order.

    Examples
    SortOrder order = SortOrder.Descending;

    None

    No sorting is applied to the data source; items remain in original order.

    Declaration
    public const SortOrder None
    Field Value
    Type Description
    SortOrder

    Leave the data source unsorted.

    Remarks

    This is the default option if no sorting is specified.

    Examples
    SortOrder order = SortOrder.None;
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved