---
description: Wisej.Web.SortOrder
---

# SortOrder

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (2.5.0.0)

Specifies how items in a list are sorted.

{% tabs %}
{% tab title="C#" %}
```csharp
public enum SortOrder : Enum
```
{% endtab %}

{% tab title="VB.NET" %}
```visual-basic
Public Enum SortOrder As [Enum]
```
{% endtab %}
{% endtabs %}

## Fields

| Name           | Description                               |
| -------------- | ----------------------------------------- |
| **Ascending**  | The items are sorted in ascending order.  |
| **Descending** | The items are sorted in descending order. |
| **None**       | The items are not sorted.                 |

## Used By

| Name                                                                                                                                            | Description                                                                                                                                                                 |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [DataGridView.SortOrder](../../lists-and-grids/datagridview#sortorder)                                                                          | Returns a value indicating whether the items in the [DataGridView](../lists-and-grids/datagridview) control are sorted in ascending or descending order, or are not sorted. |
| [DataGridViewColumnHeaderCell.SortGlyphDirection](../../lists-and-grids/datagridview/wisej.web.datagridviewcolumnheadercell#sortglyphdirection) | Returns or sets a value indicating which sort glyph is displayed.                                                                                                           |
| [ColumnHeader.SortGlyph](../../lists-and-grids/listview/wisej.web.columnheader#sortglyph)                                                       | Returns or sets the type of sort glyph to display in the column header.                                                                                                     |
| [ListView.Sorting](../../lists-and-grids/listview#sorting)                                                                                      | Returns or sets the sort order for items in the control.                                                                                                                    |
| [ListView.SortOrder](../../lists-and-grids/listview#sortorder)                                                                                  | Returns a value indicating whether the items in the [ListView](../lists-and-grids/listview) control are sorted in ascending or descending order, or are not sorted.         |
