# LibTmux.PaneId.CompareTo

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/PaneId.cs#L76
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-paneid-compareto/

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

Orders this identifier against another numerically.

tmux hands out pane 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` (`PaneId`): The identifier to compare against.

## Returns

A negative value, zero, or a positive value.
