---
title: "Class Sorting"
slug: "sdk--stylelabs.m.base.querying.sorting"
abstract: ""
---
# Class Sorting

Indicates how to sort the result of a query.

## Inheritance

object

Sorting

## Namespace: StylelabsStylelabs.MStylelabs.M.BaseQuerying

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public class Sorting
```

## Properties

### Culture

Gets or sets the culture to sort in.

#### Declaration

```csharp
public string Culture { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| string |  |

### Field

Gets or sets the field to sort on.

#### Declaration

```csharp
public string Field { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| string |  |

### FieldType

Gets or sets the type of the field to sort on.

#### Declaration

```csharp
public SortFieldType? FieldType { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| [SortFieldType](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.sortfieldtype.html) |  |

### Order

Gets or sets the direction to sort in.

#### Declaration

```csharp
public QuerySortOrder Order { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| [QuerySortOrder](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.querysortorder.html) |  |
