# `Comparable`
[🔗](https://github.com/ash-project/ash/blob/v3.17.0/lib/comparable/comparable.ex#L6)

Protocol which describes ordering relation for pair of types

# `ord`

```elixir
@type ord() :: :gt | :lt | :eq
```

# `t`

```elixir
@type t() :: t()
```

# `compare`

```elixir
@spec compare(t()) :: ord()
```

Accepts struct with fields :left and :right and returns ord value

---

*Consult [api-reference.md](api-reference.md) for complete listing*
