# `Ash.Error.Query.UnsortableField`
[🔗](https://github.com/ash-project/ash/blob/v3.24.7/lib/ash/error/query/unsortable_field.ex#L5)

Used when attempting to sort on a field that cannot be used for sorting

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %Ash.Error.Query.UnsortableField{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  field: term(),
  path: term(),
  reason: term(),
  resource: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}
```

Create an `Elixir.Ash.Error.Query.UnsortableField` without raising it.

## Keys

- :resource
- :field
- :reason

---

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