# LibTmux.SessionId.CompareTo

- **Module:** LibTmux.SessionId
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/SessionId.cs#L76
- **Page:** https://libtmux.org/en/dotnet/latest/reference/libtmux-sessionid-compareto/

```
LibTmux.SessionId.CompareTo(other: SessionId) -> int
```

Orders this identifier against another numerically.

tmux hands out session identifiers in increasing order, so the ordering
is oldest first. Without it <c>OrderBy</c> and <c>Array.Sort</c> throw
rather than sorting.

## Parameters

- `other` (SessionId): The identifier to compare against.

## Returns

A negative value, zero, or a positive value.
