# SortOrder

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.0.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](https://docs.wisej.com/api/lists-and-grids/datagridview#sortorder)                                                                          | Returns a value indicating whether the items in the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control are sorted in ascending or descending order, or are not sorted. |
| [DataGridViewColumnHeaderCell.SortGlyphDirection](https://docs.wisej.com/api/lists-and-grids/datagridview/wisej.web.datagridviewcolumnheadercell#sortglyphdirection) | Returns or sets a value indicating which sort glyph is displayed.                                                                                                                                             |
| [ColumnHeader.SortGlyph](https://docs.wisej.com/api/lists-and-grids/listview/wisej.web.columnheader#sortglyph)                                                       | Returns or sets the type of sort glyph to display in the column header.                                                                                                                                       |
| [ListView.Sorting](https://docs.wisej.com/api/lists-and-grids/listview#sorting)                                                                                      | Returns or sets the sort order for items in the control.                                                                                                                                                      |
| [ListView.SortOrder](https://docs.wisej.com/api/lists-and-grids/listview#sortorder)                                                                                  | Returns a value indicating whether the items in the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) control are sorted in ascending or descending order, or are not sorted.         |
