# SortedDictionarySurrogate&lt;TKey, TValue&gt;.Comparer

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.sorteddictionarysurrogate-2/) | [Fields](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.sorteddictionarysurrogate-2/fields/)

```csharp
[Orleans.Id(1)]
public IComparer<TKey> SortedDictionarySurrogate<TKey, Comparer
```

Gets or sets the comparer.

### Value

The comparer.
