---
title: "SortValue"
slug: "cloud-sdk-search-sortvalue-1539447"
abstract: "The SortValue interface represents the sort parameter options of the search widget item. Used to configure the sorting of search results."
---
# SortValue

|     |     |
| --- | --- |
| Type | Interface |
| Import path | `@sitecore-cloudsdk/search/server` |

The sort parameter options of the search widget item. Used to configure the sorting of search results.

## Signature

```typescript
export interface SortValue {
  name: string;
  order?: SortingOptions;
}
```

## Properties

| Name | Type | Description | Value |
| --- | --- | --- | --- |
| name | string | Required.The sort type to use for sorting results. Set the value to a sort type defined in Sitecore Search. | "recommended""newest""name""reviews" |
| order | SortingOptions | Optional.Whether to sort values in an ascending ("asc") or descending ("desc") order. | "asc" |
