# PropertySort

Namespace: **Wisej.Web**

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

Specifies how properties are sorted in the [PropertyGrid](https://docs.wisej.com/api/wisej.web/lists-and-grids/propertygrid).

{% tabs %}
{% tab title="C#" %}

```csharp
public enum PropertySort : Enum
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Enum PropertySort As [Enum]
```

{% endtab %}
{% endtabs %}

## Fields

| Name                        | Description                                                                                                                                                                                  |
| --------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Alphabetical**            | Properties are sorted in an alphabetical list.                                                                                                                                               |
| **Categorized**             | Properties are displayed according to their category in a group. The categories are defined by the properties themselves.                                                                    |
| **CategorizedAlphabetical** | Properties are displayed according to their category in a group. The properties are further sorted alphabetically within the group. The categories are defined by the properties themselves. |
| **NoSort**                  | Properties are displayed in the order in which they are retrieved from the [TypeDescriptor](https://docs.microsoft.com/dotnet/api/system.componentmodel.typedescriptor).                     |

## Used By

| Name                                                                                                           | Description                                                                                                                                           |
| -------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| [PropertyGrid.PropertySort](https://docs.wisej.com/api/wisej.web/lists-and-grids/propertygrid/..#propertysort) | Returns or sets the type of sorting the [PropertyGrid](https://docs.wisej.com/api/wisej.web/lists-and-grids/propertygrid) uses to display properties. |
