# SortBy

- [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/SortBy#SCHEMA_REPRESENTATION)
- [SortOrder](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/SortBy#SortOrder)
- [SearchEverythingCaseProperty](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/SortBy#SearchEverythingCaseProperty)

Message that represents the order by.

| JSON representation |
|---|
| ``` { "sortOrder": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/SortBy#SortOrder`), "sortBy": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/SortBy#SearchEverythingCaseProperty`) } ``` |

| Fields ||
|---|---|
| `sortOrder` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/SortBy#SortOrder`)`` Optional. The sort order. |
| `sortBy` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/SortBy#SearchEverythingCaseProperty`)`` Optional. The sort by property. |

## SortOrder

Enum that represents the sort order.

| Enums ||
|---|---|
| `DESCENDING` | Descending sort order. |
| `ASCENDING` | Ascending sort order. |

## SearchEverythingCaseProperty

Enum that represents the properties that can be used to sort the cases.

| Enums ||
|---|---|
| `ID` | Id search everything case property. |
| `TITLE` | Title search everything case property. |
| `TIME` | Time search everything case property. |
| `USER_ASSIGNED` | UserAssigned search everything case property. |
| `IS_IMPORTANT` | IsImportant search everything case property. |
| `IS_INCIDENT` | IsIncident search everything case property. |
| `INVOLVED_SUSPICIOUS_ENTITY` | InvolvedSuspiciousEntity search everything case property. |
| `IS_CASE_CLOSED` | IsCaseClosed search everything case property. |
| `ENVIRONMENT` | Environment search everything case property. |
| `PRIORITY` | Priority search everything case property. |
| `STAGE` | Stage search everything case property. |