# SortCriteria Class

Namespace: [Qlik.Engine](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.htm)  
Assembly: Qlik.Engine.dll

## Inheritance

* System.Object
  * SortCriteria

## Syntax

```
[ValueClass]
public class SortCriteria : ISortCriteria
```

## Constructors

| Name | Description |
| --- | --- |
| [SortCriteria()](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.SortCriteria.-ctor.htm#Qlik_Engine_SortCriteria__ctor) |  |

## Properties

| Name | Description |
| --- | --- |
| [Expression](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.SortCriteria.Expression.htm#Qlik_Engine_SortCriteria_Expression) | Sort by expression.<br><br>JSON property name: qExpression |
| [SortByAscii](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.SortCriteria.SortByAscii.htm#Qlik_Engine_SortCriteria_SortByAscii) | Sorts the field by alphabetical order.<br><br>JSON property name: qSortByAscii |
| [SortByExpression](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.SortCriteria.SortByExpression.htm#Qlik_Engine_SortCriteria_SortByExpression) | Sorts the field by expression.<br><br>JSON property name: qSortByExpression |
| [SortByFrequency](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.SortCriteria.SortByFrequency.htm#Qlik_Engine_SortCriteria_SortByFrequency) | Sorts the field values by frequency (number of occurrences in the field).<br><br>JSON property name: qSortByFrequency |
| [SortByGreyness](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.SortCriteria.SortByGreyness.htm#Qlik_Engine_SortCriteria_SortByGreyness) | JSON property name: qSortByGreyness |
| [SortByLoadOrder](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.SortCriteria.SortByLoadOrder.htm#Qlik_Engine_SortCriteria_SortByLoadOrder) | Sorts the field values by the initial load order.<br><br>JSON property name: qSortByLoadOrder |
| [SortByNumeric](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.SortCriteria.SortByNumeric.htm#Qlik_Engine_SortCriteria_SortByNumeric) | Sorts the field values by numeric value.<br><br>JSON property name: qSortByNumeric |
| [SortByState](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.SortCriteria.SortByState.htm#Qlik_Engine_SortCriteria_SortByState) | Sorts the field values according to their logical state (selected, optional, alternative or excluded).<br><br>JSON property name: qSortByState |