# StringValue.CompareTo

Kind: Method  
Namespace: `Sisk.Core.Entity`  
Assembly: `Sisk.Core.dll`  
Source: https://docs.sisk-framework.org/api/Sisk.Core.Entity.StringValue.CompareTo.html

## CompareTo(StringValue, in StringComparison) {#Sisk_Core_Entity_StringValue_CompareTo_Sisk_Core_Entity_StringValue_System_StringComparison__}

Compares the current object with another object of the same type, using the specified string comparison.

```csharp
public int CompareTo(StringValue other, in StringComparison stringComparison)
```

### Parameters

`other` [StringValue](https://docs.sisk-framework.org/api/Sisk.Core.Entity.StringValue.md)

The object to compare with the current object.

`stringComparison` [StringComparison](https://learn.microsoft.com/dotnet/api/system.stringcomparison)

One of the [StringComparison](https://learn.microsoft.com/dotnet/api/system.stringcomparison) values that specifies the comparison rules to use.

### Returns

[int](https://learn.microsoft.com/dotnet/api/system.int32)

A value that indicates the relative order of the objects being compared.

### See Also

[StringComparison](https://learn.microsoft.com/dotnet/api/system.stringcomparison)
